spatialTransform: Added the "&&" operator to transform positions
This commit is contained in:
parent
8ca752eb79
commit
6af11bfa02
@ -178,6 +178,10 @@ public:
|
||||
// X.v = (E . vw, E . (vl - r^vw))
|
||||
inline spatialVector operator&(const spatialVector& v) const;
|
||||
|
||||
//- Transform position p
|
||||
// X:p = (E . pw, E . (vl - r))
|
||||
inline spatialVector operator&&(const spatialVector& v) const;
|
||||
|
||||
|
||||
// IOstream Operators
|
||||
|
||||
|
@ -154,6 +154,19 @@ inline Foam::spatialVector Foam::spatialTransform::operator&
|
||||
}
|
||||
|
||||
|
||||
inline Foam::spatialVector Foam::spatialTransform::operator&&
|
||||
(
|
||||
const spatialVector& v
|
||||
) const
|
||||
{
|
||||
return spatialVector
|
||||
(
|
||||
E_ & v.w(),
|
||||
E_ & (v.l() - r_)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
inline Foam::spatialTransform::transpose::operator spatialTensor() const
|
||||
{
|
||||
return spatialTensor
|
||||
|
Loading…
Reference in New Issue
Block a user