#include <glu3.h>
Public Member Functions | |
GLUmat4 (void) | |
GLUmat4 (const GLUvec4 &c0, const GLUvec4 &c1, const GLUvec4 &c2, const GLUvec4 &c3) | |
GLUmat4 (const GLUmat4 &m) | |
GLUvec4 | operator* (const GLUvec4 &) const |
GLUmat4 | operator* (const GLUmat4 &) const |
GLUmat4 | operator* (GLfloat) const |
GLUmat4 | operator+ (const GLUmat4 &) const |
GLUmat4 | operator- (const GLUmat4 &) const |
Public Attributes | |
struct GLUvec4 | col [4] |
Basic 4x4 matrix type.
GLUmat4::GLUmat4 | ( | void | ) | [inline] |
Default constructor. Columns are uninitialized.
GLUmat4::GLUmat4 | ( | const GLUvec4 & | c0, | |
const GLUvec4 & | c1, | |||
const GLUvec4 & | c2, | |||
const GLUvec4 & | c3 | |||
) | [inline] |
Initialize a matrix from four vec4 inputs. Each vec4 is a column in the resulting matrix.
GLUmat4::GLUmat4 | ( | const GLUmat4 & | m | ) | [inline] |
Initialize a matrix from another matrix.
INLINE GLUmat4 GLUmat4::operator* | ( | GLfloat | f | ) | const |
Multiply with a scalar.
Matrix multiply with a 4x4 matrix.
Multiply a vector with a matrix.
Multiply as a column-vector with a 4x4 matrix resulting in a column-vector.
Component-wise subtraction with a mat4.
struct GLUvec4 GLUmat4::col[4] |
Columns of the matrix.