getVector2dAtCheckedVectorIndex Method

Access by index, returning strongly typed Vector2d

getVector2dAtCheckedVectorIndex(index: number, result?: Vector2d): Vector2d | undefined

Parameter Type Description
index number index of point within the array
result Vector2d caller-allocated destination

Returns - Vector2d | undefined

undefined if the index is out of bounds

Defined in

Last Updated: 15 June, 2021