unitVectorTo Method

Return a unit vector from this vector to other. Return a 000 vector if the input is too small to normalize.

unitVectorTo(target: Readonly<WritableXYAndZ>, result?: Vector3d): undefined | Vector3d

Parameter Type Description
target Readonly<WritableXYAndZ>  
result Vector3d optional result vector.

Returns - undefined | Vector3d

Defined in

Last Updated: 17 December, 2024