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

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

Last Updated: 20 June, 2023