FixedSizeArrays.jl icon indicating copy to clipboard operation
FixedSizeArrays.jl copied to clipboard

Point ± Point should produce a Vec?

Open stevengj opened this issue 9 years ago • 2 comments

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

stevengj avatar Oct 31 '16 22:10 stevengj

See #102

andyferris avatar Oct 31 '16 23:10 andyferris

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.

andyferris avatar Oct 31 '16 23:10 andyferris