Math module

row

procedure · 1 overloadSource

Row i (0-based) of a Matrix4 as a Vector4. No range check.

ExampleOpen in playground ↗
m := Matrix4_Identity;
m._14 = 5;
assert(row(m, 0) == xyzw(1, 0, 0, 5));
row :: (m: Matrix4, i: int) -> Vector4

The ith row of the matrix, counting from 0.

Parameters

m: Matrix4
the matrix.
i: int
the row index, 0 to 3.

Returns

See also