#include <Matrix33.hpp>
Public Methods | |
JMatrix33 () | |
virtual | ~JMatrix33 () |
JMatrix33 (const JMatrix22 &mat) | |
JMatrix33 (const JMatrix33 &mat) | |
void | print () |
void | identity () |
JMatrix33 | rotx (double rad) |
JMatrix33 | roty (double rad) |
JMatrix33 | rotz (double rad) |
JMatrix33 | rotxyz (JVector3 euler) |
JMatrix33 | mult (JMatrix33 mat) |
JVector2 | mult (JVector2 vect) |
JVector3 | mult (JVector3 vect) |
Public Attributes | |
double | m [9] |
|
Definition at line 20 of file Matrix33.hpp. 00020 { clear(); } |
|
Definition at line 21 of file Matrix33.hpp. 00021 { } |
|
|
|
Definition at line 26 of file Matrix33.cpp. |
|
Definition at line 38 of file Matrix33.cpp. 00038 { 00039 m[0] = 1; 00040 m[1] = 0; 00041 m[2] = 0; 00042 00043 m[3] = 0; 00044 m[4] = 1; 00045 m[5] = 0; 00046 00047 m[6] = 0; 00048 m[7] = 0; 00049 m[8] = 1; 00050 } |
|
|
|
|
|
|
|
Definition at line 32 of file Matrix33.cpp. 00032 { 00033 printf("| %-+7.2f %-+7.2f %-+7.2f|\n", m[0], m[3], m[6] ); 00034 printf("| %-+7.2f %-+7.2f %-+7.2f|\n", m[1], m[4], m[7] ); 00035 printf("| %-+7.2f %-+7.2f %-+7.2f|\n\n", m[2], m[5], m[8] ); 00036 } |
|
Definition at line 52 of file Matrix33.cpp. 00052 { 00053 JMatrix33 ret; 00054 double c = cos(rad); 00055 double s = sin(rad); 00056 00057 ret.m[0] = 1; 00058 ret.m[1] = 0; 00059 ret.m[2] = 0; 00060 00061 ret.m[3] = 0; 00062 ret.m[4] = c; 00063 ret.m[5] = -s; 00064 00065 ret.m[6] = 0; 00066 ret.m[7] = s; 00067 ret.m[8] = c; 00068 00069 return ret; 00070 } |
|
|
|
Definition at line 72 of file Matrix33.cpp. 00072 { 00073 JMatrix33 ret; 00074 double c = cos(rad); 00075 double s = sin(rad); 00076 00077 ret.m[0] = c; 00078 ret.m[1] = 0; 00079 ret.m[2] = -s; 00080 00081 ret.m[3] = 0; 00082 ret.m[4] = 1; 00083 ret.m[5] = 0; 00084 00085 ret.m[6] = s; 00086 ret.m[7] = 0; 00087 ret.m[8] = c; 00088 00089 return ret; 00090 } |
|
Definition at line 92 of file Matrix33.cpp. 00092 { 00093 JMatrix33 ret; 00094 double c = cos(rad); 00095 double s = sin(rad); 00096 00097 ret.m[0] = c; 00098 ret.m[1] = -s; 00099 ret.m[2] = 0; 00100 00101 ret.m[3] = s; 00102 ret.m[4] = c; 00103 ret.m[5] = 0; 00104 00105 ret.m[6] = 0; 00106 ret.m[7] = 0; 00107 ret.m[8] = 1; 00108 00109 return ret; 00110 } |
|
Definition at line 40 of file Matrix33.hpp. Referenced by JMatrix33(), rotx(), roty(), and rotz().
|