glVertex
5.5.2
|
3x3 float matrix More...
#include <glslmath.h>
Public Member Functions | |
mat3f (float diag=1.0f) | |
default constructor | |
mat3f (const vec3f &r1, const vec3f &r2, const vec3f &r3=vec3f(0, 0, 1)) | |
custom constructor | |
mat3f (const mat3 &m) | |
copy constructor | |
vec3f | operator[] (const int i) const |
subscript operator (column getter) | |
vec3f | row (const int i) const |
row getter | |
vec3f | col (const int i) const |
column getter | |
operator mat2f () 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[9]) |
convert from 9-element column-major OpenGL matrix | |
operator std::string () | |
string cast operator | |
Static Public Member Functions | |
static mat3f | columns (const vec3f &c1, const vec3f &c2, const vec3f &c3) |
construct matrix from column vectors | |
static mat3f | columns (float a, float b, float c, float d, float e, float f, float g, float h, float i) |
construct matrix from column vectors | |
static mat3f | rows (const vec3f &r1, const vec3f &r2, const vec3f &r3) |
construct matrix from row vectors | |
static mat3f | rows (float a, float b, float c, float d, float e, float f, float g, float h, float i) |
construct matrix from row vectors | |
Protected Attributes | |
union { | |
}; | |
matrix elements | |
3x3 float matrix