Get the cross product of two 3d vectors. For 2d vectors, we imply the z-component is zero and return a 3d vector. The function returns undefined for dimensions > 3.
Vector perpendicular to p1 and p2
Vector
Optional
optional target
Generated using TypeDoc
Get the cross product of two 3d vectors. For 2d vectors, we imply the z-component is zero and return a 3d vector. The function returns undefined for dimensions > 3.
Returns
Vector perpendicular to p1 and p2