#include <tgMathlib.h>
Public Member Functions | |
float | det () const |
void | fromAngleAxis (float angle, const vec3 &axis) |
void | fromRotVector (const vec3 &r) |
void | getAxisAngle (vec3 &axis, float &angle) |
void | identity () |
mat3 | inverse () const |
mat3 () | |
mat3 (const float *m) | |
mat3 (const mat3 &m) | |
mat3 (const mat4 &m) | |
operator const float * () const | |
operator float * () | |
vec3 | operator* (const vec3 &v) const |
vec4 | operator* (const vec4 &v) const |
mat3 | operator* (float f) const |
mat3 | operator* (const mat3 &m) const |
mat3 & | operator*= (float f) |
mat3 & | operator*= (const mat3 &m) |
mat3 | operator+ (const mat3 &m) const |
mat3 & | operator+= (const mat3 &m) |
mat3 | operator- (const mat3 &m) const |
mat3 & | operator-= (const mat3 &m) |
float & | operator[] (int i) |
float | operator[] (int i) const |
void | orthonormalize () |
void | rotate (const vec3 &axis, float angle) |
void | rotate (float x, float y, float z, float angle) |
void | rotate_x (float angle) |
void | rotate_y (float angle) |
void | rotate_z (float angle) |
void | scale (const vec3 &v) |
void | scale (float x, float y, float z) |
mat3 | transpose () const |
void | zero () |
Public Attributes | |
float | mat [9] |
Definition at line 317 of file tgMathlib.h.
mat3::mat3 | ( | ) | [inline] |
Definition at line 319 of file tgMathlib.h.
mat3::mat3 | ( | const float * | m | ) | [inline] |
Definition at line 324 of file tgMathlib.h.
mat3::mat3 | ( | const mat3 & | m | ) | [inline] |
Definition at line 329 of file tgMathlib.h.
mat3::mat3 | ( | const mat4 & | m | ) | [inline] |
Definition at line 853 of file tgMathlib.h.
float mat3::det | ( | ) | const [inline] |
Definition at line 404 of file tgMathlib.h.
void mat3::fromAngleAxis | ( | float | angle, |
const vec3 & | axis | ||
) | [inline] |
Definition at line 508 of file tgMathlib.h.
void mat3::fromRotVector | ( | const vec3 & | r | ) | [inline] |
Definition at line 527 of file tgMathlib.h.
void mat3::getAxisAngle | ( | vec3 & | axis, |
float & | angle | ||
) | [inline] |
Definition at line 534 of file tgMathlib.h.
void mat3::identity | ( | ) | [inline] |
Definition at line 434 of file tgMathlib.h.
mat3 mat3::inverse | ( | ) | const [inline] |
Definition at line 414 of file tgMathlib.h.
mat3::operator const float * | ( | ) | const [inline] |
Definition at line 392 of file tgMathlib.h.
mat3::operator float * | ( | ) | [inline] |
Definition at line 391 of file tgMathlib.h.
Definition at line 336 of file tgMathlib.h.
Definition at line 343 of file tgMathlib.h.
mat3 mat3::operator* | ( | float | f | ) | const [inline] |
Definition at line 351 of file tgMathlib.h.
Definition at line 358 of file tgMathlib.h.
mat3& mat3::operator*= | ( | float | f | ) | [inline] |
Definition at line 386 of file tgMathlib.h.
Definition at line 387 of file tgMathlib.h.
Definition at line 371 of file tgMathlib.h.
Definition at line 388 of file tgMathlib.h.
Definition at line 378 of file tgMathlib.h.
Definition at line 389 of file tgMathlib.h.
float& mat3::operator[] | ( | int | i | ) | [inline] |
Definition at line 394 of file tgMathlib.h.
float mat3::operator[] | ( | int | i | ) | const [inline] |
Definition at line 395 of file tgMathlib.h.
void mat3::orthonormalize | ( | ) | [inline] |
Definition at line 493 of file tgMathlib.h.
void mat3::rotate | ( | const vec3 & | axis, |
float | angle | ||
) | [inline] |
Definition at line 439 of file tgMathlib.h.
void mat3::rotate | ( | float | x, |
float | y, | ||
float | z, | ||
float | angle | ||
) | [inline] |
Definition at line 458 of file tgMathlib.h.
void mat3::rotate_x | ( | float | angle | ) | [inline] |
Definition at line 461 of file tgMathlib.h.
void mat3::rotate_y | ( | float | angle | ) | [inline] |
Definition at line 469 of file tgMathlib.h.
void mat3::rotate_z | ( | float | angle | ) | [inline] |
Definition at line 477 of file tgMathlib.h.
void mat3::scale | ( | const vec3 & | v | ) | [inline] |
Definition at line 485 of file tgMathlib.h.
void mat3::scale | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 490 of file tgMathlib.h.
mat3 mat3::transpose | ( | ) | const [inline] |
Definition at line 397 of file tgMathlib.h.
void mat3::zero | ( | ) | [inline] |
Definition at line 429 of file tgMathlib.h.
float mat3::mat[9] |
Definition at line 542 of file tgMathlib.h.