Vector-tensor class used to perform translations and rotations in 3D space. More...
Public Member Functions | |
vectorTensorTransform () | |
Construct null. More... | |
vectorTensorTransform (const vector &t, const tensor &R, bool hasR=true) | |
Construct given a translation vector, rotation tensor and. More... | |
vectorTensorTransform (const vector &t) | |
Construct a pure translation vectorTensorTransform given a. More... | |
vectorTensorTransform (const tensor &R) | |
Construct a pure rotation vectorTensorTransform given a. More... | |
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 vectorTensorTransform &) |
void | operator= (const vector &) |
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<> | |
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<> | |
tmp< Field< bool > > | transform (const Field< bool > &) const |
Template specialisations. More... | |
template<> | |
tmp< Field< label > > | transform (const Field< label > &) const |
template<> | |
tmp< Field< scalar > > | transform (const Field< scalar > &) 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 61 of file vectorTensorTransform.H.
|
inline |
Construct null.
Definition at line 28 of file vectorTensorTransformI.H.
Referenced by Foam::inv(), Foam::operator&(), Foam::operator+(), and Foam::operator-().
|
inline |
Construct given a translation vector, rotation tensor and.
hasR bool
Definition at line 37 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure translation vectorTensorTransform given a.
translation vector
Definition at line 49 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure rotation vectorTensorTransform given a.
rotation tensor
Definition at line 57 of file vectorTensorTransformI.H.
vectorTensorTransform | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 53 of file vectorTensorTransform.C.
|
inline |
Definition at line 67 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), Foam::contiguous< vectorTensorTransform >(), globalIndexAndTransform::globalIndexAndTransform(), Foam::inv(), vectorTensorTransform::invTransformPosition(), Foam::name(), Foam::operator&(), Foam::operator+(), vectorTensorTransform::operator+=(), Foam::operator-(), vectorTensorTransform::operator-=(), Foam::operator<<(), vectorTensorTransform::operator=(), Foam::operator==(), and vectorTensorTransform::transformPosition().
|
inline |
Definition at line 73 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), Foam::inv(), vectorTensorTransform::invTransformPosition(), Foam::name(), Foam::operator&(), mapDistribute::transform::operator()(), transformOp< PrimitivePatchType, Type, TrackingData >::operator()(), Foam::operator+(), Foam::operator-(), Foam::operator<<(), vectorTensorTransform::operator=(), Foam::operator==(), and vectorTensorTransform::transformPosition().
|
inline |
Definition at line 79 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), Foam::inv(), Foam::operator&(), Foam::operator+(), Foam::operator-(), and Foam::operator<<().
|
inline |
Definition at line 85 of file vectorTensorTransformI.H.
|
inline |
Definition at line 91 of file vectorTensorTransformI.H.
References vectorTensorTransform::transformPosition().
|
inline |
Transform the given position.
Definition at line 103 of file vectorTensorTransformI.H.
References vectorTensorTransform::R(), and vectorTensorTransform::t().
Referenced by mapDistribute::transformPosition::operator()(), and vectorTensorTransform::R().
|
inline |
Transform the given pointField.
Definition at line 119 of file vectorTensorTransformI.H.
References vectorTensorTransform::invTransformPosition(), vectorTensorTransform::R(), and vectorTensorTransform::t().
|
inline |
Inverse transform the given position.
Definition at line 138 of file vectorTensorTransformI.H.
References vectorTensorTransform::R(), Foam::T(), and vectorTensorTransform::t().
Referenced by mapDistribute::transformPosition::operator()(), and vectorTensorTransform::transformPosition().
|
inline |
Inverse transform the given pointField.
Definition at line 154 of file vectorTensorTransformI.H.
References vectorTensorTransform::R(), vectorTensorTransform::t(), and Tensor< Cmpt >::T().
Transform the given field.
Referenced by Foam::contiguous< vectorTensorTransform >(), Foam::name(), and vectorTensorTransform::transform().
|
inline |
Definition at line 175 of file vectorTensorTransformI.H.
References Foam::tr().
|
inline |
Definition at line 186 of file vectorTensorTransformI.H.
References Foam::tr().
|
inline |
Definition at line 199 of file vectorTensorTransformI.H.
References vectorTensorTransform::t().
|
inline |
Definition at line 205 of file vectorTensorTransformI.H.
References vectorTensorTransform::t().
|
inline |
Definition at line 211 of file vectorTensorTransformI.H.
References vectorTensorTransform::t().
|
inline |
Definition at line 217 of file vectorTensorTransformI.H.
References vectorTensorTransform::R().
|
inline |
Definition at line 225 of file vectorTensorTransformI.H.
Foam::tmp<Foam::Field<bool> > transform | ( | const Field< bool > & | fld | ) | const |
Definition at line 73 of file vectorTensorTransform.C.
References fld(), and vectorTensorTransform::transform().
Foam::tmp<Foam::Field<Foam::label> > transform | ( | const Field< label > & | fld | ) | const |
Definition at line 81 of file vectorTensorTransform.C.
References fld(), and vectorTensorTransform::transform().
Foam::tmp<Foam::Field<Foam::scalar> > transform | ( | const Field< scalar > & | fld | ) | const |
Definition at line 89 of file vectorTensorTransform.C.
References fld().
Foam::tmp<Foam::Field<Type> > transform | ( | const Field< Type > & | fld | ) | const |
Definition at line 30 of file vectorTensorTransformTemplates.C.
|
friend |
|
friend |
|
static |
Definition at line 81 of file vectorTensorTransform.H.
|
static |
Definition at line 83 of file vectorTensorTransform.H.
|
static |
Definition at line 85 of file vectorTensorTransform.H.