Module d2d.math.Vector

Vector

Functions

NameDescription
cross(first, second) Calculates the cross product or the perpendicular vector to two vectors (with length equal to the area of the parallelogram they form) Currently only works on 2 or 3 dimensional vectors
dot(first, second) Calculates the dot product or the similarity of two vectors

Classes

NameDescription
Vector A vector is an object representing distance in vertical and horizontal directions in multidimensional space Components are the first template parameter with the second template parameter being vector dimensionality Most vector operations take advantage of parallelism to do simple arithmetic on each component in parallel