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
- geometry3d/Point3dVector3d.ts Line 1254
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.