Class xlifepp::Rotation2d#

class Rotation2d : public xlifepp::Transformation#

representation of a rotation from a point and an angle

Public Functions

Rotation2d()#

default constructor

inline Rotation2d(const Parameter &p1)#

main constructor from one key

inline Rotation2d(const Parameter &p1, const Parameter &p2)#

main constructor from 2 keys

inline Rotation2d(const Point &c, real_t angle)#

constructor with a vector of real numbers

inline Rotation2d(const std::vector<Parameter> &ps)#

main constructor from a vector of keys

inline virtual ~Rotation2d()#

destructor

inline real_t angle() const#

accessor to rotation angle

virtual Point apply(const Point &p) const#

computes the image of a point by the transformation

inline const Point &center() const#

accessor to rotation center

inline virtual Transformation *clone() const#

virtual copy constructor

virtual void print(std::ostream&) const#

print Transformation

inline virtual Rotation2d *rotation2d()#

access to child Rotation2d object

inline virtual const Rotation2d *rotation2d() const#

access to child Rotation2d object (const)