unitCrossProductWithDefault Method
Compute the cross product of this vector with vectorB
. Normalize it, using given xyz as
default if length is zero.
unitCrossProductWithDefault(vectorB: Vector3d, x: number, y: number, z: number, result?: Vector3d): Vector3d
Parameter | Type | Description |
---|---|---|
vectorB | Vector3d | second vector of cross product |
x | number | x value for default result |
y | number | y value for default result |
z | number | z value for default result |
result | Vector3d | optional pre-allocated result. |
Returns - Vector3d
Defined in
- geometry3d/Point3dVector3d.ts Line 1185
Last Updated: 30 November, 2023