geom v0.1.0 Geom.Shape.Vector protocol
A protocol with the functions to be implemented by the vectors of different dimensions.
Summary
Functions
Returns a vector with the coordinates of the two given vector summed 2 by 2, or the scalar added to each coord
Returns the distance between two vectors
Returns a vector with the coordinates of the given vector divided by the given scalar
Returns the dot product of the two given vectors
Returns a vector with the coordinates of the given vector multiplied by the given scalar
Returns the length of the given vector
Returns a vector with the coordinates of the two given vector subtracted 2 by 2, or the scalar subtracted from each coord
Returns a vector of length one with the same direction as the given vector
Types
Functions
Returns a vector with the coordinates of the two given vector summed 2 by 2, or the scalar added to each coord.
Returns a vector with the coordinates of the given vector divided by the given scalar.
Returns a vector with the coordinates of the given vector multiplied by the given scalar.
Returns a vector with the coordinates of the two given vector subtracted 2 by 2, or the scalar subtracted from each coord.