tf2  master
tf2 maintains the relationship between coordinate frames in a tree structure buffered in time, and lets the user transform points, vectors, etc between any two coordinate frames at any desired point in time.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Functions
Quaternion.h File Reference
#include "Vector3.h"
#include "QuadWord.h"
#include "tf2/visibility_control.h"
Include dependency graph for Quaternion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tf2::Quaternion
 The Quaternion implements quaternion to perform linear algebra rotations in combination with Matrix3x3, Vector3 and Transform. More...
 

Namespaces

 tf2
 

Functions

TF2SIMD_FORCE_INLINE Quaternion tf2::operator- (const Quaternion &q)
 Return the negative of a quaternion. More...
 
TF2SIMD_FORCE_INLINE Quaternion tf2::operator* (const Quaternion &q1, const Quaternion &q2)
 Return the product of two quaternions. More...
 
TF2SIMD_FORCE_INLINE Quaternion tf2::operator* (const Quaternion &q, const Vector3 &w)
 
TF2SIMD_FORCE_INLINE Quaternion tf2::operator* (const Vector3 &w, const Quaternion &q)
 
TF2SIMD_FORCE_INLINE tf2Scalar tf2::dot (const Quaternion &q1, const Quaternion &q2)
 Calculate the dot product between two quaternions. More...
 
TF2SIMD_FORCE_INLINE tf2Scalar tf2::length (const Quaternion &q)
 Return the length of a quaternion. More...
 
TF2SIMD_FORCE_INLINE tf2Scalar tf2::angle (const Quaternion &q1, const Quaternion &q2)
 Return the half angle between two quaternions. More...
 
TF2SIMD_FORCE_INLINE tf2Scalar tf2::angleShortestPath (const Quaternion &q1, const Quaternion &q2)
 Return the shortest angle between two quaternions. More...
 
TF2SIMD_FORCE_INLINE Quaternion tf2::inverse (const Quaternion &q)
 Return the inverse of a quaternion. More...
 
TF2SIMD_FORCE_INLINE Quaternion tf2::slerp (const Quaternion &q1, const Quaternion &q2, const tf2Scalar &t)
 Return the result of spherical linear interpolation betwen two quaternions. More...
 
TF2SIMD_FORCE_INLINE Vector3 tf2::quatRotate (const Quaternion &rotation, const Vector3 &v)
 
TF2SIMD_FORCE_INLINE Quaternion tf2::shortestArcQuat (const Vector3 &v0, const Vector3 &v1)
 
TF2SIMD_FORCE_INLINE Quaternion tf2::shortestArcQuatNormalize2 (Vector3 &v0, Vector3 &v1)