Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

vector and point confusion. Point subtraction. #3

@bootchk

Description

@bootchk

You point out that Apple confuses points and vectors. That comment could be more clear by saying that this project continues that tradition. For example you provide comparison operators between points and vectors. A user must be very careful because that can lead to errors.

Also, you don't provide a subtraction operator between points. But that is the fundamental definition of what a vector is: the difference between two points. And for example, in some maths, addition of points is not defined.

I am not suggesting this is wrong or easily resolved. Just that you might warn users. You see the same thing in other libraries such as PyEuclid. I forked geometryFramed from PyEuclid and there I do distinguish points and vectors.

Thanks for porting to Swift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions