Vector-tensor class used to perform translations and rotations in 3D space. More...
Public Member Functions | |
vectorTensorTransform (const vectorTensorTransform &)=default | |
Copy construct. More... | |
vectorTensorTransform & | operator= (const vectorTensorTransform &)=default |
Copy assignment. More... | |
vectorTensorTransform () | |
Default construct - no translation, identity rotation. More... | |
vectorTensorTransform (const vector &t, const tensor &R, bool hasR=true) | |
vectorTensorTransform (const vector &t) | |
vectorTensorTransform (const tensor &R) | |
vectorTensorTransform (Istream &) | |
Construct from Istream. More... | |
const vector & | t () const |
const tensor & | R () const |
bool | hasR () const |
vector & | t () |
tensor & | R () |
vector | transformPosition (const vector &v) const |
Transform the given position. More... | |
pointField | transformPosition (const pointField &pts) const |
Transform the given pointField. More... | |
vector | invTransformPosition (const vector &v) const |
Inverse transform the given position. More... | |
pointField | invTransformPosition (const pointField &pts) const |
Inverse transform the given pointField. More... | |
template<class Type > | |
tmp< Field< Type > > | transform (const Field< Type > &) const |
Transform the given field. More... | |
void | operator&= (const vectorTensorTransform &) |
void | operator= (const vector &) |
Assign translation. More... | |
void | operator+= (const vector &) |
void | operator-= (const vector &) |
void | operator= (const tensor &) |
void | operator&= (const tensor &) |
template<> | |
Foam::tmp< Foam::Field< bool > > | transform (const Field< bool > &fld) const |
Template specialisations. More... | |
template<> | |
Foam::tmp< Foam::Field< Foam::label > > | transform (const Field< label > &fld) const |
template<> | |
Foam::tmp< Foam::Field< Foam::scalar > > | transform (const Field< scalar > &fld) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | transform (const Field< Type > &fld) const |
Static Public Attributes | |
static const char *const | typeName |
static const vectorTensorTransform | zero |
static const vectorTensorTransform | I |
Friends | |
Istream & | operator>> (Istream &is, vectorTensorTransform &) |
Ostream & | operator<< (Ostream &os, const vectorTensorTransform &) |
Vector-tensor class used to perform translations and rotations in 3D space.
Definition at line 63 of file vectorTensorTransform.H.
|
default |
Copy construct.
|
inline |
Default construct - no translation, identity rotation.
Definition at line 30 of file vectorTensorTransformI.H.
|
inline |
Construct given a translation vector, rotation tensor and hasR bool
Definition at line 38 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure translation vectorTensorTransform given a translation vector
Definition at line 51 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure rotation vectorTensorTransform given a rotation tensor
Definition at line 59 of file vectorTensorTransformI.H.
|
explicit |
Construct from Istream.
Definition at line 55 of file vectorTensorTransform.C.
|
default |
Copy assignment.
|
inline |
Definition at line 69 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), Foam::operator&(), and Foam::operator==().
|
inline |
Definition at line 75 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), Foam::operator&(), Foam::operator==(), and vectorTensorTransform::transform().
|
inline |
Definition at line 81 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), and Foam::operator&().
|
inline |
Definition at line 87 of file vectorTensorTransformI.H.
|
inline |
Definition at line 93 of file vectorTensorTransformI.H.
|
inline |
Transform the given position.
Definition at line 104 of file vectorTensorTransformI.H.
References R.
|
inline |
Transform the given pointField.
Definition at line 120 of file vectorTensorTransformI.H.
References R.
|
inline |
Inverse transform the given position.
Definition at line 139 of file vectorTensorTransformI.H.
|
inline |
Inverse transform the given pointField.
Definition at line 155 of file vectorTensorTransformI.H.
References R.
|
inline |
Definition at line 176 of file vectorTensorTransformI.H.
References Foam::tr().
|
inline |
Assign translation.
Definition at line 190 of file vectorTensorTransformI.H.
|
inline |
Definition at line 196 of file vectorTensorTransformI.H.
|
inline |
Definition at line 202 of file vectorTensorTransformI.H.
|
inline |
Definition at line 208 of file vectorTensorTransformI.H.
References R.
|
inline |
Definition at line 216 of file vectorTensorTransformI.H.
References R.
Template specialisations.
Definition at line 74 of file vectorTensorTransform.C.
References fld().
Definition at line 82 of file vectorTensorTransform.C.
References fld().
Definition at line 90 of file vectorTensorTransform.C.
References fld().
Foam::tmp< Foam::Field< Type > > transform | ( | const Field< Type > & | fld | ) | const |
Definition at line 31 of file vectorTensorTransformTemplates.C.
References fld(), and vectorTensorTransform::R().
|
friend |
|
friend |
|
static |
Definition at line 83 of file vectorTensorTransform.H.
|
static |
Definition at line 85 of file vectorTensorTransform.H.
|
static |
Definition at line 87 of file vectorTensorTransform.H.