Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point ± Point should produce a Vec? #161

Open
stevengj opened this issue Oct 31, 2016 · 2 comments
Open

Point ± Point should produce a Vec? #161

stevengj opened this issue Oct 31, 2016 · 2 comments

Comments

@stevengj
Copy link

Currently, Point – Point produces a Point, which seems wrong for the documented semantics.

@andyferris
Copy link
Contributor

See #102

@andyferris
Copy link
Contributor

I have played around with implementing an Affine space and it is a little tricky to get everything both "correct" and "convenient". If you think Point - Point = Vec then you might want Point + Point = error() and, since Point no longer represents a vector space, you can't have Point being any kind of Union{AbstractVector, FixedVector}.

I would love to see a neat solution for all of this, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants