QPoint3dBuffer.getQPoint Function
Extracts the point at the specified index from a buffer.
getQPoint(points: Uint16Array, pointIndex: number, result?: QPoint3d): QPoint3d
@returns The point at pointIndex
.
@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
- core/common/src/QPoint.ts Line 705
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.