Mat2Generated
Category: Types
Float matrices by columns: m[i] a column, m * v applies it.
Syntax
Section titled “Syntax”Mat2 Mat3 Mat4Description
Section titled “Description”Float matrices by columns: m[i] a column, m * v applies it.
Builtins that take this type
Section titled “Builtins that take this type”| Returns | Function | Category |
|---|---|---|
Float |
determinant(m: Mat2) |
math |
DMat2 |
double(x: Mat2) |
conversion |
Mat2 |
float(x: DMat2) |
conversion |
Mat2 |
inverse(m: Mat2) |
math |
Mat2 |
mat2(c0: Vec2, c1: Vec2) |
construction |
Mat2 |
mat2(diagonal: Float) |
construction |
Mat2 |
transpose(m: Mat2) |
math |

