unitCrossProductWithDefault Method

Compute the cross product of this vector with vectorB and normalize it.

  • If length is zero, return the vector given by x, y, z.

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: 14 November, 2024