dlsl.matrix

dlsl.matrix

Members

Aliases

mat2
alias mat2 = Matrix!(float, 2, 2)

predefined matrix types, the first number represents the number of cols and the second the number of columns, if there's just one it's a nxn matrix. All of these matrices are floating - point matrices.

mat23
alias mat23 = Matrix!(float, 2, 3)
Undocumented in source.
mat24
alias mat24 = Matrix!(float, 2, 4)
Undocumented in source.
mat3
alias mat3 = Matrix!(float, 3, 3)
Undocumented in source.
mat32
alias mat32 = Matrix!(float, 3, 2)
Undocumented in source.
mat34
alias mat34 = Matrix!(float, 3, 4)
Undocumented in source.
mat4
alias mat4 = Matrix!(float, 4, 4)
Undocumented in source.
mat42
alias mat42 = Matrix!(float, 4, 2)
Undocumented in source.
mat43
alias mat43 = Matrix!(float, 4, 3)
Undocumented in source.

Functions

determinant
auto determinant(Matrix mat)

////////////// //////////////

invert
auto invert(Matrix mat)

///////// /////////

isinf
bool isinf(genType mat)

query if any entry is inf

isnan
bool isnan(genType mat)

query if any entry is nan

isvalid
bool isvalid(genType mat)

query if all entries are not nan and not inf

transpose
auto transpose(Matrix mat)

////////////// Transpose /// //////////////

Structs

Matrix
struct Matrix(type, int numCols, int numRows)

Base template for all matrix types. See predefined matrix types

Templates

isMatrix
template isMatrix(T)

If T is a matrix, this evaluates to true, otherwise false

Variables

deg2rad
enum float deg2rad;
Undocumented in source.
rad2deg
enum float rad2deg;
Undocumented in source.

Meta

Authors

Peter Particle ( based on gl3n by David Herberth )

License

MIT

Note: All methods marked with pure are weakly pure since, they all access an instance member. All static methods are strongly pure.