Commit 292543a3 authored by Henry Weller's avatar Henry Weller
Browse files

spatialTransform: Added the "&&" operator to transform positions

parent 48427f7a
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment