QPoint3dBuffer.getQPoint Function

Extracts the point at the specified index from a buffer.

getQPoint(points: Uint16Array, pointIndex: number, result?: QPoint3d): QPoint3d

throws Error if pointIndex is out of bounds.

Parameter Type Description
points Uint16Array The buffer in which each consecutive pair of integers is a 3d quantized point.
pointIndex number The index of the point to extract, ranging from zero to one less than the number of points in the buffer.
result QPoint3d If supplied, a preallocated QPoint3d to initialize with the result and return.

Returns - QPoint3d

The point at pointIndex.

Defined in

Last Updated: 20 June, 2023