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: XYAndZ, result?: Vector3d): Vector3d | undefined

Parameter Type Description
target XYAndZ  
result Vector3d optional result vector.

Returns - Vector3d | undefined

Defined in

Last Updated: 13 June, 2024