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) | |
| Construct given a translation vector, rotation tensor and hasR bool. More... | |
| vectorTensorTransform (const vector &t) | |
| Construct a pure translation vectorTensorTransform given a translation vector. More... | |
| vectorTensorTransform (const tensor &R) | |
| Construct a pure rotation vectorTensorTransform given a rotation tensor. More... | |
| vectorTensorTransform (Istream &) | |
| Construct from Istream. More... | |
| bool | hasR () const noexcept |
| True if it has a non-identity rotation tensor. More... | |
| const vector & | t () const noexcept |
| The translation vector. More... | |
| const tensor & | R () const noexcept |
| The (forward) rotation tensor. More... | |
| vector & | t () noexcept |
| Non-const access to the translation vector. More... | |
| tensor & | R () noexcept |
| Non-const access to the rotation tensor. Sets hasR = true. More... | |
| void | checkRotation (const scalar tol=ROOTVSMALL) |
| Test for identity rotation and set hasR accordingly. More... | |
| vector | transformPosition (const vector &v) const |
| Transform the given position. More... | |
| pointField | transformPosition (const pointField &pts) const |
| Transform the given field of points. More... | |
| void | transformPositionList (UList< point > &pts) const |
| Inplace transform the given points. More... | |
| vector | invTransformPosition (const vector &v) const |
| Inverse transform the given position. More... | |
| pointField | invTransformPosition (const pointField &pts) const |
| Inverse transform the given field of points. More... | |
| void | invTransformPositionList (UList< point > &pts) const |
| Inplace inverse transform the given points. More... | |
| template<class Type > | |
| tmp< Field< Type > > | transform (const Field< Type > &fld) const |
| Transform the given field. More... | |
| template<class Type > | |
| void | transformList (UList< Type > &fld) const |
| Inplace 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 &) |
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 59 of file vectorTensorTransform.H.
|
default |
Copy construct.
|
inline |
Default construct - no translation, identity rotation.
Definition at line 24 of file vectorTensorTransformI.H.
|
inline |
Construct given a translation vector, rotation tensor and hasR bool.
Definition at line 33 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure translation vectorTensorTransform given a translation vector.
Definition at line 45 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure rotation vectorTensorTransform given a rotation tensor.
Definition at line 53 of file vectorTensorTransformI.H.
|
explicit |
Construct from Istream.
Definition at line 49 of file vectorTensorTransform.C.
|
default |
Copy assignment.
|
inlinenoexcept |
True if it has a non-identity rotation tensor.
Definition at line 150 of file vectorTensorTransform.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), and globalIndexAndTransform::globalIndexAndTransform().

|
inlinenoexcept |
The translation vector.
Definition at line 155 of file vectorTensorTransform.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), and Foam::operator==().

|
inlinenoexcept |
The (forward) rotation tensor.
Definition at line 160 of file vectorTensorTransform.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), mapDistribute::transform::operator()(), transformOp< PrimitivePatchType, Type, TrackingData >::operator()(), and Foam::operator==().

|
inlinenoexcept |
Non-const access to the translation vector.
Definition at line 168 of file vectorTensorTransform.H.
|
inlinenoexcept |
Non-const access to the rotation tensor. Sets hasR = true.
Definition at line 63 of file vectorTensorTransformI.H.
| void checkRotation | ( | const scalar | tol = ROOTVSMALL | ) |
Test for identity rotation and set hasR accordingly.
Definition at line 57 of file vectorTensorTransform.C.
References Foam::mag().

|
inline |
|
inline |
Transform the given field of points.
Definition at line 90 of file vectorTensorTransformI.H.
Inplace transform the given points.
Definition at line 109 of file vectorTensorTransformI.H.
Referenced by weightedPosition::operator()(), and mapDistribute::transformPosition::operator()().

|
inline |
Inverse transform the given position.
Definition at line 131 of file vectorTensorTransformI.H.

|
inline |
Inverse transform the given field of points.
Definition at line 147 of file vectorTensorTransformI.H.
Inplace inverse transform the given points.
Definition at line 166 of file vectorTensorTransformI.H.
Referenced by weightedPosition::operator()(), and mapDistribute::transformPosition::operator()().

| void transformList | ( | UList< Type > & | fld | ) | const |
Inplace transform the given field.
|
inline |
|
inline |
Assign translation.
Definition at line 205 of file vectorTensorTransformI.H.
|
inline |
Definition at line 211 of file vectorTensorTransformI.H.
|
inline |
Definition at line 217 of file vectorTensorTransformI.H.
|
inline |
Definition at line 223 of file vectorTensorTransformI.H.
References R.
|
inline |
|
friend |
|
friend |
|
static |
Definition at line 86 of file vectorTensorTransform.H.
|
static |
Definition at line 88 of file vectorTensorTransform.H.
|
static |
Definition at line 90 of file vectorTensorTransform.H.