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

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

#include <MeshTransformation.hpp>

Public Member Functions

 Rotation ()=default
 Default constructor, default is theta = 0.
 
 Rotation (const double angle)
 Construct with user defined rotation angle, in degrees.
 
Projection TransformationProjection () const
 Get the projection required for the rotation.
 
void identity ()
 Reset rotation to identity translation (i.e. no rotation, theta = 0)
 
void reset (const double angle)
 Reset the rotation to a new rotation angle. More...
 
double angle () const
 Get the current defined rotation angle in degrees.
 
Rotation compose (const Rotation &rot) const
 Compose two rotation objects.
 
Point operator() (const Point &pnt) const
 Apply the rotation to a point in Cartesian coordinate system.
 
Vector operator() (const Vector &vec) const
 Apply the rotation to a vector in Cartesian coordinate system.
 

Detailed Description

Apply a rotation transformation to a point or a vector.

Member Function Documentation

◆ reset()

void meshkernel::Rotation::reset ( const double  angle)
inline

Reset the rotation to a new rotation angle.

The angle in degrees.


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