RigsofRods
Soft-body Physics Simulation
(ValueTypes) quaternion.h
Go to the documentation of this file.
1 
2  // =================================================== //
3  // THIS IS NOT A C++ HEADER! Only a dummy for Doxygen. //
4  // =================================================== //
5 
6 namespace ScriptValueTypes {
7 
19 struct quaternion
20 {
21 public:
22  // properties
23  float w;
24  float x;
25  float y;
26  float z;
27 
30  quaternion();
31  quaternion(const radian &in, const vector3 &in);
32  quaternion(float, float, float, float);
33  quaternion(const quaternion &in);
34  quaternion(float);
36 
39  float opIndex(int) const;
40  bool opEquals(const quaternion &in) const;
41  quaternion opAdd(const quaternion &in) const;
42  quaternion opSub(const quaternion &in) const;
43  quaternion opMul(const vector &in) const;
44  quaternion opSub() const;
45  quaternion opMul(const quaternion &in) const;
46  quaternion &opAssign(const quaternion &in);
48 
51  float Dot(const quaternion &in) const;
52  float Norm() const;
53  float normalise();
54  quaternion Inverse() const;
55  quaternion UnitInverse() const;
56  quaternion Exp() const;
57  quaternion Log() const;
58  radian getRoll(bool reprojectAxis = true) const;
59  radian getPitch(bool reprojectAxis = true) const;
60  radian getYaw(bool reprojectAxis = true) const;
61  bool equals(const quaternion &in, const radian &in) const;
62  bool isNaN() const;
64 }
65 
66 // Ogre::Quaternion static methods as global functions
67 quaternion Slerp(float, const quaternion &in, const quaternion &in, bool &in);
68 quaternion SlerpExtraSpins(float, const quaternion &in, const quaternion &in, int &in);
69 void Intermediate(const quaternion &in, const quaternion &in, const quaternion &in, const quaternion &in, const quaternion &in);
70 quaternion Squad(float, const quaternion &in, const quaternion &in, const quaternion &in, const quaternion &in, bool &in);
71 quaternion nlerp(float, const quaternion &in, const quaternion &in, bool &in);
72 
75 
76 } //namespace ScriptValueTypes
77 
ScriptValueTypes::quaternion::Log
quaternion Log() const
ScriptValueTypes::quaternion
Binding of Ogre::Quaternion.
Definition: (ValueTypes) quaternion.h:19
ScriptValueTypes::quaternion::getRoll
radian getRoll(bool reprojectAxis=true) const
ScriptValueTypes::quaternion::Inverse
quaternion Inverse() const
ScriptValueTypes::quaternion::getYaw
radian getYaw(bool reprojectAxis=true) const
ScriptValueTypes::quaternion::opEquals
bool opEquals(const quaternion &in) const
ScriptValueTypes::quaternion::equals
bool equals(const quaternion &in, const radian &in) const
ScriptValueTypes::SlerpExtraSpins
quaternion SlerpExtraSpins(float, const quaternion &in, const quaternion &in, int &in)
ScriptValueTypes::quaternion::Dot
float Dot(const quaternion &in) const
ScriptValueTypes::Squad
quaternion Squad(float, const quaternion &in, const quaternion &in, const quaternion &in, const quaternion &in, bool &in)
ScriptValueTypes::nlerp
quaternion nlerp(float, const quaternion &in, const quaternion &in, bool &in)
ScriptValueTypes::quaternion::opAssign
quaternion & opAssign(const quaternion &in)
ScriptValueTypes::vector3
Binding of Ogre::Vector3.
Definition: (ValueTypes) vector3.h:19
ScriptValueTypes::quaternion::UnitInverse
quaternion UnitInverse() const
ScriptValueTypes::quaternion::z
float z
Definition: (ValueTypes) quaternion.h:26
ScriptValueTypes
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
Definition: (ValueTypes) color.h:6
ScriptValueTypes::radian
Binding of Ogre::Radian.
Definition: (ValueTypes) radian.h:19
ScriptValueTypes::Slerp
struct ScriptValueTypes::quaternion Slerp(float, const quaternion &in, const quaternion &in, bool &in)
ScriptValueTypes::quaternion::quaternion
quaternion()
ScriptValueTypes::quaternion::opMul
quaternion opMul(const vector &in) const
ScriptValueTypes::quaternion::normalise
float normalise()
ScriptValueTypes::quaternion::opIndex
float opIndex(int) const
ScriptValueTypes::quaternion::y
float y
Definition: (ValueTypes) quaternion.h:25
ScriptValueTypes::quaternion::opSub
quaternion opSub() const
ScriptValueTypes::quaternion::getPitch
radian getPitch(bool reprojectAxis=true) const
ScriptValueTypes::quaternion::x
float x
Definition: (ValueTypes) quaternion.h:24
ScriptValueTypes::Intermediate
void Intermediate(const quaternion &in, const quaternion &in, const quaternion &in, const quaternion &in, const quaternion &in)
ScriptValueTypes::quaternion::Norm
float Norm() const
ScriptValueTypes::quaternion::isNaN
bool isNaN() const
ScriptValueTypes::quaternion::Exp
quaternion Exp() const
ScriptValueTypes::quaternion::w
float w
Definition: (ValueTypes) quaternion.h:23
ScriptValueTypes::quaternion::opAdd
quaternion opAdd(const quaternion &in) const