36 quaternion(0,
vector(0, 0, 0))
41 quaternion(1,
vector(0, 0, 0))
57 buf <<
'(' << s.
t() <<
',' << s.
r() <<
')';
81 for (
label i=1; i<ss.size(); i++)
83 sa.
t() += w[i]*ss[i].t();
86 if ((sa.
r() & ss[i].r()) > 0)
88 sa.
r() += w[i]*ss[i].r();
92 sa.
r() -= w[i]*ss[i].r();
109 is >> s.
t() >> s.
r();
115 is.
check(
"operator>>(Istream&, septernion&)");
Istream & readBegin(const char *funcName)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Vector< scalar > vector
A scalar version of the templated Vector.
Septernion class used to perform translations and rotations in 3D space.
septernion()
Construct null.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Istream & readEnd(const char *funcName)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
static const septernion I
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
word name(const complex &)
Return a string representation of a complex.
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
Spherical linear interpolation of quaternions.
Ostream & operator<<(Ostream &, const ensightPart &)
string str() const
Return the string.
const quaternion & r() const
Output to memory buffer stream.
static const char *const typeName
static const septernion zero