MeshKernel
Public Member Functions | List of all members
meshkernel::Translation Class Reference

Apply a translation transformation to a point or a vector. More...

#include <MeshTransformation.hpp>

Public Member Functions

 Translation ()=default
 Default constructor, default is no translation.
 
 Translation (const Vector &trans)
 Construct with user defined translation.
 
Projection TransformationProjection () const
 Get the projection required for the translation.
 
void identity ()
 Reset translation to identity translation (i.e. no translation)
 
void reset (const Vector &trans)
 Reset the translation to a new translation quantity.
 
const Vectorvector () const
 Get the current defined translation vector.
 
Translation compose (const Translation &trans) const
 Compose two translation objects.
 
Point operator() (const Point &pnt) const
 Apply the translation to a point in Cartesian coordinate system.
 
Vector operator() (const Vector &vec) const
 Apply the translation to a vector in Cartesian coordinate system.
 

Detailed Description

Apply a translation transformation to a point or a vector.


The documentation for this class was generated from the following file: