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

Last Updated: 13 June, 2024