-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Currently our Vec type is an alias to SVector and that helped us get off the ground and move fast with implementations. The only problem with SVector is that it doesn't force AbstractFloat coordinates. When the user types Vec(1,2) this will generate a vector with integer coordinates and many algorithms will break assuming that the vectors live in R^n.
We need a new definition for Vec that is simply a new type of StaticVector from StaticArrays.jl. They provide an interface and parent types to inherit most of the behavior of SVector. We just need to do that and add an inner constructor like we did for Point to force AbstractFloat coordinates.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed