67 Quat(
const osg::Quat& q);
138 osg::Quat& GetOSGQuat();
143 const osg::Quat& GetOSGQuat()
const;
150 Vec4d AsVec4()
const;
157 Vec3d AsVec3()
const;
164 void Set(
const Quat& q);
171 void Set(
const osg::Quat& q);
188 void Set(
const Vec4f& v);
195 void Set(
const Vec4d& v);
200 void Set(
const Matrixf& matrix);
205 void Set(
const Matrixd& matrix);
210 void Get(
Matrixf& matrix)
const;
215 void Get(
Matrixd& matrix)
const;
222 void Set(
const osg::Matrixf& matrix);
229 void Set(
const osg::Matrixd& matrix);
236 void Get(osg::Matrixf& matrix)
const;
243 void Get(osg::Matrixd& matrix)
const;
251 bool IsZeroRotation()
const;
352 void MakeRotate(
const Vec3f& vec1,
const Vec3f& vec2);
366 void MakeRotate(
const Vec3d& vec1,
const Vec3d& vec2);
479 bool operator < (
const Quat& v)
const;
484 bool operator > (
const Quat& v)
const;
509 const Quat operator*(
const Quat& rhs)
const;
529 const Quat operator/(
const Quat& denom)
const;
534 Quat& operator/=(
const Quat& denom);
544 Quat& operator += (
const Quat& rhs);
549 const Quat operator - (
const Quat& rhs)
const;
554 Quat& operator -= (
const Quat& rhs);
560 const Quat operator - ()
const;
565 operator osg::Quat ()
const;
570 operator osg::Quat& ();
575 operator const osg::Quat& ()
const;
580 operator osg::Quat* ();
591 std::string
ToString(
int precision = -1);
std::string operator+(const std::string &s1, const RefStr &s2)
bool operator==(const std::string &s1, const RefStr &s2)
General purpose 3D float Vector.
bool operator!=(const std::string &s1, const RefStr &s2)
TR_BASE_EXPORT std::ostream & operator<<(std::ostream &ios, const Matrixd &q)
Stream insertion operator.
A float Matrix class to be used for generic matrix operations.
General purpose 3D double Vector.
General purpose 3D double Vector.
std::string ToString(const T &t, int precision=-1)
A utility function to convert a basic type into a string.
Represents a quaternion, that is used for angular calculations and transformations.
A float Matrix class to be used for generic matrix operations.
General purpose 3D float Vector.