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