Mat

A square NxN matrix. Supports any numeric type.

Constructors

this
this(T args)
Undocumented in source.

Members

Functions

opBinary
auto opBinary(float scalar)

Returns this matrix * scalar

opBinary
auto opBinary(Vec!(T, n) vector)

Returns this matrix * vector

opBinary
auto opBinary(Mat!(T, n) other)

Returns this matrix * matrix

opBinary
auto opBinary(Mat!(T, n) other)

Returns sum or sub of two matrices

opIndex
T opIndex(int i, int j)

Get the value at [i, j]

opIndexAssign
T opIndexAssign(T value, int i, int j)

Set the value at [i, j]

opOpAssign
void opOpAssign(float scalar)

Returns this matrix * scalar

opOpAssign
void opOpAssign(Mat!(T, n) other)

Returns this matrix * matrix

ptr
auto ptr()

Internal data as a pointer, use for sending data to shaders.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta