Matrix

Undocumented in source.
struct Matrix (
int Dimensions
) {}

Constructors

this
this(float[Dimensions][Dimensions] d)
Undocumented in source.

Members

Aliases

GMatrix
alias GMatrix = typeof(this)
Undocumented in source.

Functions

Rotate
GMatrix Rotate(float rot)
Undocumented in source. Be warned that the author may not have intended to support it.
Rotate
GMatrix Rotate(Quaternion rot)
Undocumented in source. Be warned that the author may not have intended to support it.
RotateX
GMatrix RotateX(float rot)
Undocumented in source. Be warned that the author may not have intended to support it.
RotateY
GMatrix RotateY(float rot)
Undocumented in source. Be warned that the author may not have intended to support it.
RotateZ
GMatrix RotateZ(float rot)
Undocumented in source. Be warned that the author may not have intended to support it.
Scale
GMatrix Scale(Vector!(float, Dimensions - 1) scale_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
ToString
string ToString()
Undocumented in source. Be warned that the author may not have intended to support it.
Translate
GMatrix Translate(Vector!(float, Dimensions - 1) trans_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
Transpose
GMatrix Transpose()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
GMatrix opBinary(GMatrix other)
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
inout(float)* ptr()

Returns a pointer to the data container of this vector

Static functions

FromQuaternion
GMatrix FromQuaternion(Quaternion quat)
Undocumented in source. Be warned that the author may not have intended to support it.
Identity
GMatrix Identity()
Undocumented in source. Be warned that the author may not have intended to support it.
Orthographic
GMatrix Orthographic(float left, float right, float bottom, float top, float znear, float zfar)
Undocumented in source. Be warned that the author may not have intended to support it.
OrthographicInverse
GMatrix OrthographicInverse(float left, float right, float bottom, float top, float znear, float zfar)
Undocumented in source. Be warned that the author may not have intended to support it.
Perspective
GMatrix Perspective(float width, float height, float fov, float znear, float zfar)
Undocumented in source. Be warned that the author may not have intended to support it.
Rotation
GMatrix Rotation(float rot)
Undocumented in source. Be warned that the author may not have intended to support it.
RotationX
GMatrix RotationX(float x_rot)
Undocumented in source. Be warned that the author may not have intended to support it.
RotationY
GMatrix RotationY(float y_rot)
Undocumented in source. Be warned that the author may not have intended to support it.
RotationZ
GMatrix RotationZ(float z_rot)
Undocumented in source. Be warned that the author may not have intended to support it.
Scaling
GMatrix Scaling(float3 scale_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
Scaling
GMatrix Scaling(Vector!(float, Dimensions - 1) scale_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
Translation
GMatrix Translation(Vector!(float, Dimensions) trans_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
Translation
GMatrix Translation(Vector!(float, Dimensions) trans_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
Translation
GMatrix Translation(Vector!(float, Dimensions - 1) trans_vec)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
float[Dimensions][Dimensions] data;
Undocumented in source.

Meta