24 #include "../Math_LIB/MMatrix3x3.h"
39 #pragma warning(disable:4503)
48 namespace OpenSkyNet {
53 p_.
x() = v_.x; p_.
y() = v_.y; p_.
z() = v_.z;
62 return Ogre::Vector3(p_.
x(),p_.
y(),p_.
z());
72 mat_[0][0] = rot_.
col(0)[0];
73 mat_[0][1] = rot_.
col(1)[0];
74 mat_[0][2] = rot_.
col(2)[0];
75 mat_[1][0] = rot_.
col(0)[1];
76 mat_[1][1] = rot_.
col(1)[1];
77 mat_[1][2] = rot_.
col(2)[1];
78 mat_[2][0] = rot_.
col(0)[2];
79 mat_[2][1] = rot_.
col(1)[2];
80 mat_[2][2] = rot_.
col(2)[2];
84 return Ogre::Matrix3(rot_.
col(0)[0],rot_.
col(1)[0],rot_.
col(2)[0],
85 rot_.
col(0)[1],rot_.
col(1)[1],rot_.
col(2)[1],
86 rot_.
col(0)[2],rot_.
col(1)[2],rot_.
col(2)[2]);
Ogre::Vector3 GetVector3FromMPoint(const Math::Point< T > &p_)
Definition: GUtils.h:61
void MMatrix3x3ToMatrix3(const Math::Matrix3x3 &rot_, Ogre::Matrix3 &mat_)
Definition: GUtils.h:71
Math::Point GetMPointFromVector3(const Ogre::Vector3 &v_)
Definition: GUtils.h:56
T & y()
Definition: MPoint.h:65
Ogre::Matrix3 GetMatrix3FromMMatrix3x3(const Math::Matrix3x3 &rot_)
Definition: GUtils.h:83
T & x()
Definition: MPoint.h:64
T & z()
Definition: MPoint.h:66
Definition: MMatrix3x3.h:32
Math::Matrix3x3 GetMMatrix3x3FromMatrix3(const Ogre::Matrix3 &rot_)
Definition: GUtils.h:65
float float rot_[3]
Definition: ViewerApp.h:31
Math::Point & col(int i_)
Definition: MMatrix3x3.h:49
void Vector3ToMPoint(const Ogre::Vector3 &v_, Math::Point<> &p_)
Definition: GUtils.h:52