|
| | Quaternion () |
| | No initialization constructor.
|
| |
| | Quaternion (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w) |
| | Constructor from scalars.
|
| |
| | Quaternion (const Vector3 &axis, const tf2Scalar &angle) |
| | Axis angle Constructor.
|
| |
| | Quaternion (const tf2Scalar &roll, const tf2Scalar &pitch, const tf2Scalar &yaw) |
| | Constructor from fixed axis RPY.
|
| |
| void | setRotation (const Vector3 &axis, const tf2Scalar &angle) |
| | Set the rotation using axis angle notation.
|
| |
| void | setEuler (const tf2Scalar &yaw, const tf2Scalar &pitch, const tf2Scalar &roll) |
| | Set the quaternion using Euler angles.
|
| |
| void | setRPY (const tf2Scalar &roll, const tf2Scalar &pitch, const tf2Scalar &yaw) |
| | Set the quaternion using fixed axis RPY.
|
| |
| Quaternion & | operator+= (const Quaternion &q) |
| | Add two quaternions.
|
| |
| Quaternion & | operator-= (const Quaternion &q) |
| | Sutf2ract out a quaternion.
|
| |
| Quaternion & | operator*= (const tf2Scalar &s) |
| | Scale this quaternion.
|
| |
| Quaternion & | operator*= (const Quaternion &q) |
| | Multiply this quaternion by q on the right.
|
| |
| tf2Scalar | dot (const Quaternion &q) const |
| | Return the dot product between this quaternion and another.
|
| |
| tf2Scalar | length2 () const |
| | Return the length squared of the quaternion.
|
| |
| tf2Scalar | length () const |
| | Return the length of the quaternion.
|
| |
| bool | isnan () const |
| |
| Quaternion & | normalize () |
| | Normalize the quaternion Such that x^2 + y^2 + z^2 +w^2 = 1.
|
| |
| Quaternion | operator* (const tf2Scalar &s) const |
| | Return a scaled version of this quaternion.
|
| |
| Quaternion | operator/ (const tf2Scalar &s) const |
| | Return an inversely scaled versionof this quaternion.
|
| |
| Quaternion & | operator/= (const tf2Scalar &s) |
| | Inversely scale this quaternion.
|
| |
| Quaternion | normalized () const |
| | Return a normalized version of this quaternion.
|
| |
| tf2Scalar | angle (const Quaternion &q) const |
| | Return the half angle between this quaternion and the other.
|
| |
| tf2Scalar | angleShortestPath (const Quaternion &q) const |
| | Return the angle between this quaternion and the other along the shortest path.
|
| |
| tf2Scalar | getAngle () const |
| | Return the angle [0, 2Pi] of rotation represented by this quaternion.
|
| |
| tf2Scalar | getAngleShortestPath () const |
| | Return the angle [0, Pi] of rotation represented by this quaternion along the shortest path.
|
| |
| Vector3 | getAxis () const |
| | Return the axis of the rotation represented by this quaternion.
|
| |
| Quaternion | inverse () const |
| | Return the inverse of this quaternion.
|
| |
| Quaternion | operator+ (const Quaternion &q2) const |
| | Return the sum of this quaternion and the other.
|
| |
| Quaternion | operator- (const Quaternion &q2) const |
| | Return the difference between this quaternion and the other.
|
| |
| Quaternion | operator- () const |
| | Return the negative of this quaternion This simply negates each element.
|
| |
| Quaternion | farthest (const Quaternion &qd) const |
| |
| Quaternion | nearest (const Quaternion &qd) const |
| |
| Quaternion | slerp (const Quaternion &q, const tf2Scalar &t) const |
| | Return the quaternion which is the result of Spherical Linear Interpolation between this and the other quaternion.
|
| |
| const tf2Scalar & | getW () const |
| |
| const tf2Scalar & | getX () const |
| | Return the x value.
|
| |
| const tf2Scalar & | getY () const |
| | Return the y value.
|
| |
| const tf2Scalar & | getZ () const |
| | Return the z value.
|
| |
| void | setX (tf2Scalar x) |
| | Set the x value.
|
| |
| void | setY (tf2Scalar y) |
| | Set the y value.
|
| |
| void | setZ (tf2Scalar z) |
| | Set the z value.
|
| |
| void | setW (tf2Scalar w) |
| | Set the w value.
|
| |
| const tf2Scalar & | x () const |
| | Return the x value.
|
| |
| const tf2Scalar & | y () const |
| | Return the y value.
|
| |
| const tf2Scalar & | z () const |
| | Return the z value.
|
| |
| const tf2Scalar & | w () const |
| | Return the w value.
|
| |
| | operator tf2Scalar * () |
| | operator tf2Scalar*() replaces operator[], using implicit conversion. We added operator != and operator == to avoid pointer comparisons.
|
| |
| | operator const tf2Scalar * () const |
| |
| bool | operator== (const QuadWord &other) const |
| |
| bool | operator!= (const QuadWord &other) const |
| |
| void | setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z) |
| | Set x,y,z and zero w.
|
| |
| void | setValue (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w) |
| | Set the values.
|
| |
| | QuadWord () |
| | No initialization constructor.
|
| |
| | QuadWord (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z) |
| | Three argument constructor (zeros w)
|
| |
| | QuadWord (const tf2Scalar &x, const tf2Scalar &y, const tf2Scalar &z, const tf2Scalar &w) |
| | Initializing constructor.
|
| |
| void | setMax (const QuadWord &other) |
| | Set each element to the max of the current values and the values of another QuadWord.
|
| |
| void | setMin (const QuadWord &other) |
| | Set each element to the min of the current values and the values of another QuadWord.
|
| |
The Quaternion implements quaternion to perform linear algebra rotations in combination with Matrix3x3, Vector3 and Transform.