vectorXAndYIndex Method
Return a vector from given origin to point at indexB
vectorXAndYIndex(origin: XAndY, indexB: number, result?: Vector2d): Vector2d | undefined
@returns undefined if index is out of bounds
| Parameter | Type | Description |
|---|---|---|
| origin | XAndY | origin for vector |
| indexB | number | index of point within the array |
| result | Vector2d | caller-allocated vector. |
Returns - Vector2d | undefined
undefined if index is out of bounds
Defined in
Last Updated: 09 May, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.