Graphmath.Mat33.Tuple
This is the 3D mathematics library for graphmath.
This submodule handles 3x3 matrices using tuples of floats.
Summary
add(a, b) |
|
apply(a, v) |
|
apply_left(v, a) |
|
at(a, i, j) |
|
column0(a) |
|
column1(a) |
|
column2(a) |
|
diag(a) |
|
identity() |
|
multiply(a, b) |
|
multiply_transpose(a, b) |
|
row0(a) |
|
row1(a) |
|
row2(a) |
|
scale(a, k) |
|
subtract(a, b) |
|
zero() |
|
Types ↑
mat33 :: {float, float, float, float, float, float, float, float, float}
vec3 :: {float, float, float}
Functions
Specs:
apply( a, v )
transforms a vector v
by a 3x3 matrix a
.
Specs:
apply_left( v, a )
transforms a vector v
by a 3x3 matrix a
.
Specs:
- at(mat33, Integer, Integer) :: float
at( a, i, j)
selects the element of a 3x3 matrix at row i and column j.
Specs:
column0( a )
selects the first column from a matrix 3x3 as a vec3.
Specs:
column1( a )
selects the second column from a matrix 3x3 as a vec3.
Specs:
column2( a )
selects the third column from a matrix 3x3 as a vec3.
Specs:
diag( a )
selects the diagonal from a matrix 3x3 as a vec3.
Specs:
multiply( a, b )
multiply two matrices a and b together.
Specs:
multiply_transpose( a, b )
multiply two matrices a and b transpose together.
Specs:
row0( a )
selects the first row from a matrix 3x3 as a vec3.
Specs:
row1( a )
selects the second row from a matrix 3x3 as a vec3.
Specs:
row2( a )
selects the third row from a matrix 3x3 as a vec3.
Specs:
scale( a, k )
scales every element in a matrix a by coefficient k.
Specs:
subtract(a,b)
subtracts one 3x3 matrix from another..