Go to the documentation of this file.
17 Info<<
"q*quaternion(0, v)*conjugate(q) "
21 Info<<
"q.R() & v " << (q.
R() & v) <<
endl;
30 Info<<
"tr.transform(v) " <<
tr.transform(v) <<
endl;
32 Info<<
"(septernion(vector(0, -1, 0))*q*septernion(vector(0, 1, 0)))"
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Septernion class used to perform translations and rotations in 3D space.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionSet transform(const dimensionSet &)
Quaternion class used to perform rotations in 3D space.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
Vector< scalar > vector
A scalar version of the templated Vector.
vector invTransform(const vector &v) const
Rotate the given vector anti-clockwise.
tensor R() const
The rotation tensor corresponding the quaternion.
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
quaternion conjugate(const quaternion &q)
Return the conjugate of the given quaternion.
vector transform(const vector &v) const
Rotate the given vector.