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