SimonDanisch / FixedSizeArrays.jl

Julia's generic FixedSizeArray implementation. Can be used for all kinds of Vector constructs
Other
35 stars 20 forks source link

Point ± Point should produce a Vec? #161

Open stevengj opened 8 years ago

stevengj commented 8 years ago

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

andyferris commented 8 years ago

See #102

andyferris commented 8 years ago

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.