#include <utils.h>
Definition at line 267 of file utils.h.
§ Matrix3X3() [1/2]
Definition at line 270 of file utils.h.
270 {
for(
int i=0;i<9;i++)
m[i]=0.0f; }
§ Matrix3X3() [2/2]
§ at() [1/2]
float& Matrix3X3::at |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
§ at() [2/2]
const float& Matrix3X3::at |
( |
int |
i, |
|
|
int |
j |
|
) |
| const |
|
inline |
§ dbgprint()
void Matrix3X3::dbgprint |
( |
| ) |
|
|
inline |
Definition at line 360 of file utils.h.
void dbgprintf(const char *fmt,...)
§ Determinant()
float Matrix3X3::Determinant |
( |
| ) |
const |
|
inline |
§ diag()
Definition at line 277 of file utils.h.
vector3< float > vector3f
§ Inverse()
Definition at line 298 of file utils.h.
302 float invdet = 1/det;
304 result(0,0) = (
at(1,1)*
at(2,2)-
at(2,1)*
at(1,2))*invdet;
305 result(1,0) = -(
at(0,1)*
at(2,2)-
at(0,2)*
at(2,1))*invdet;
306 result(2,0) = (
at(0,1)*
at(1,2)-
at(0,2)*
at(1,1))*invdet;
307 result(0,1) = -(
at(1,0)*
at(2,2)-
at(1,2)*
at(2,0))*invdet;
308 result(1,1) = (
at(0,0)*
at(2,2)-
at(0,2)*
at(2,0))*invdet;
309 result(2,1) = -(
at(0,0)*
at(1,2)-
at(1,0)*
at(0,2))*invdet;
310 result(0,2) = (
at(1,0)*
at(2,1)-
at(2,0)*
at(1,1))*invdet;
311 result(1,2) = -(
at(0,0)*
at(2,1)-
at(2,0)*
at(0,1))*invdet;
312 result(2,2) = (
at(0,0)*
at(1,1)-
at(1,0)*
at(0,1))*invdet;
float Determinant() const
§ InverseTranspose()
Matrix3X3 Matrix3X3::InverseTranspose |
( |
| ) |
const |
|
inline |
Definition at line 317 of file utils.h.
321 float invdet = 1/det;
323 result(0,0) = (
at(1,1)*
at(2,2)-
at(2,1)*
at(1,2))*invdet;
324 result(0,1) = -(
at(0,1)*
at(2,2)-
at(0,2)*
at(2,1))*invdet;
325 result(0,2) = (
at(0,1)*
at(1,2)-
at(0,2)*
at(1,1))*invdet;
326 result(1,0) = -(
at(1,0)*
at(2,2)-
at(1,2)*
at(2,0))*invdet;
327 result(1,1) = (
at(0,0)*
at(2,2)-
at(0,2)*
at(2,0))*invdet;
328 result(1,2) = -(
at(0,0)*
at(1,2)-
at(1,0)*
at(0,2))*invdet;
329 result(2,0) = (
at(1,0)*
at(2,1)-
at(2,0)*
at(1,1))*invdet;
330 result(2,1) = -(
at(0,0)*
at(2,1)-
at(2,0)*
at(0,1))*invdet;
331 result(2,2) = (
at(0,0)*
at(1,1)-
at(1,0)*
at(0,1))*invdet;
float Determinant() const
§ operator()() [1/2]
float& Matrix3X3::operator() |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
inline |
§ operator()() [2/2]
const float& Matrix3X3::operator() |
( |
int |
i, |
|
|
int |
j |
|
) |
| const |
|
inline |
§ operator*=()
§ operator+=()
§ operator[]() [1/2]
float& Matrix3X3::operator[] |
( |
int |
i | ) |
|
|
inline |
§ operator[]() [2/2]
const float& Matrix3X3::operator[] |
( |
int |
i | ) |
const |
|
inline |
§ row() [1/2]
§ row() [2/2]
const vector3f& Matrix3X3::row |
( |
int |
i | ) |
const |
|
inline |
§ test()
static void Matrix3X3::test |
( |
| ) |
|
|
inlinestatic |
Definition at line 351 of file utils.h.
355 for (
int i=0;i<9;i++)
Matrix3X3 Inverse() const
The documentation for this class was generated from the following file: