vector3.cross
The cross product a × b, perpendicular to both by the right-hand rule.
Usage
Vector3.cross(a: Vector3, b: Vector3): Vector3Parameters
aVector3First vector. Required. In model.
bVector3Second vector. Required. In model.
Returns
A vector of length |a| |b| sin θ perpendicular to both; the zero vector when they are parallel or either is zero; NaN components for non-finite input.
Example
Vector3.cross(Vector3.xAxis, Vector3.yAxis) // → { x: 0, y: 0, z: 1 }