94 return r().transform(v -
t());
100 return t() +
r().invTransform(v);
108 t_ =
tr.t() +
tr.r().invTransform(t_);
141 t_ =
r.invTransform(t_);
148 t_ =
r.transform(t_);
178 return (tr1.
t() == tr2.
t() && tr1.
r() == tr2.
r());
190 const septernion&
tr,
210 const septernion&
tr,
230 const septernion&
tr,
240 const septernion&
tr,
250 const septernion& tr1,
251 const septernion& tr2
256 tr2.r().invTransform(tr1.
t()) + tr2.t(),
264 const septernion& tr1,
286 return septernion(
tr.t()/
s,
tr.r()/
s);
Quaternion class used to perform rotations in 3D space.
vector transform(const vector &v) const
Rotate the given vector.
static const quaternion I
Septernion class used to perform translations and rotations in 3D space.
vector invTransformPoint(const vector &v) const
Inverse Transform the given coordinate point.
void operator*=(const septernion &)
void operator+=(const vector &)
septernion()=default
Default construct.
const quaternion & r() const
vector transformPoint(const vector &v) const
Transform the given coordinate point.
septernion & operator=(const septernion &)=default
Copy assignment.
void operator-=(const vector &)
static const septernion I
void operator/=(const quaternion &)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
bool operator!=(const eddy &a, const eddy &b)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
static constexpr const zero Zero
Global zero (0).
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
quaternion conjugate(const quaternion &q)
Return the conjugate of the given quaternion.