glVertex  5.5.2
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
mat4f Class Reference

4x4 float matrix More...

#include <glslmath.h>

Public Member Functions

 mat4f (float diag=1.0f)
 default constructor
 
 mat4f (const vec4f &r1, const vec4f &r2, const vec4f &r3, const vec4f &r4=vec4f(0, 0, 0, 1))
 custom constructor
 
 mat4f (const mat4 &m)
 copy constructor
 
vec4f operator[] (const int i) const
 subscript operator (column getter)
 
vec4f row (const int i) const
 row getter
 
vec4f col (const int i) const
 column getter
 
 operator mat3f () const
 down cast operator
 
const float * c_ptr () const
 const pointer to column-major array
 
 operator const float * () const
 cast operator to column-major array
 
void fromOpenGL (const float m[16])
 convert from 16-element column-major OpenGL matrix
 
 operator std::string ()
 string cast operator
 

Static Public Member Functions

static mat4f columns (const vec4f &c1, const vec4f &c2, const vec4f &c3, const vec4f &c4)
 construct matrix from column vectors
 
static mat4f columns (float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l, float m, float n, float o, float p)
 construct matrix from column vectors
 
static mat4f rows (const vec4f &r1, const vec4f &r2, const vec4f &r3, const vec4f &r4)
 construct matrix from row vectors
 
static mat4f rows (float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l, float m, float n, float o, float p)
 construct matrix from row vectors
 

Protected Attributes

union {
}; 
 matrix elements
 

Detailed Description

4x4 float matrix


The documentation for this class was generated from the following file: