2x2 double matrix
More...
#include <glslmath.h>
|
|
static mat2 | columns (const vec2 &c1, const vec2 &c2) |
| | construct matrix from column vectors
|
| |
|
static mat2 | columns (double a, double b, double c, double d) |
| | construct matrix from column vectors
|
| |
|
static mat2 | rows (const vec2 &r1, const vec2 &r2) |
| | construct matrix from row vectors
|
| |
|
static mat2 | rows (double a, double b, double c, double d) |
| | construct matrix from row vectors
|
| |
|
static double | det (const mat2 &m) |
| | static version of determinant operation
|
| |
|
static mat2 | transpose (const mat2 &m) |
| | static version of transpose operation
|
| |
|
static mat2 | invert (const mat2 &m) |
| | static version of invert operation
|
| |
|
static mat2 | scale (double s, double t) |
| | create scaling matrix
|
| |
|
static mat2 | scale (const vec2 &c) |
| | create scaling matrix
|
| |
| static mat2 | rotate (double angle) |
| | create rotation matrix More...
|
| |
|
|
union { |
| }; | |
| | matrix elements
|
| |
2x2 double matrix
- definition of matrix via constructor taking two row vectors
- supplies matrix operators + and *
◆ rotate()
| static mat2 mat2::rotate |
( |
double |
angle | ) |
|
|
inlinestatic |
create rotation matrix
- rotation angle is specified clockwise
The documentation for this class was generated from the following file: