getSteppedPoint Method
Return a point with entries from positions [i0, i0+step, i0+2step, i0+3step].
- There are no tests for index going out of the 0..15 range.
- Usual uses are:
- i0 at left of row (0,4,8,12), step = 1 to extract a row.
- i0 at top of row (0,1,2,3), step = 4 to extract a column
- i0 = 0, step = 5 to extract the diagonal
getSteppedPoint(i0: number, step: number, result?: Point4d): Point4d
@returns a Point4d with 4 entries taken from positions at steps in the flat 16-member array.
Parameter | Type | Description |
---|---|---|
i0 | number | start index (for 16 member array) |
step | number | step between members |
result | Point4d | optional preallocated point. |
Returns - Point4d
a Point4d with 4 entries taken from positions at steps in the flat 16-member array.
Defined in
- geometry4d/Matrix4d.ts Line 279
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.