MeshKernel
|
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. | |
Apply a rotation transformation to a point or a vector.
|
inline |
Reset the rotation to a new rotation angle.
The angle in degrees.