24 return x1 * x2 + y1 * y2;
42 return x1 * x2 + y1 * y2 + z1 * z2;
56 return sqrt(x * x + y * y);
71 return sqrt(x * x + y * y + z * z);
T dotProduct2D(T x1, T y1, T x2, T y2)
Computes the dot product of two vectors in the 2D cartesian space.
Definition: vector.h:23
T norm3D(T x, T y, T z)
Computes the norm of a vector in 3D cartesiance space.
Definition: vector.h:70
T dotProduct3D(T x1, T y1, T z1, T x2, T y2, T z2)
Computes the dot product of two vectors in 3D cartesian space.
Definition: vector.h:41
T norm2D(T x, T y)
Computes the norm of a vector in the 2D cartesian space.
Definition: vector.h:55