Class xlifepp::Reflection2d#

class Reflection2d : public xlifepp::Transformation#

representation of a reflection

Public Functions

Reflection2d()#

default constructor

inline Reflection2d(const Parameter &p1)#

main constructor from one key

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

main constructor from 2 keys

inline Reflection2d(const Point &c, real_t dx, real_t dy)#

constructor from a center and coordinates of the direction vector

inline Reflection2d(const Point &c, std::vector<real_t> d)#

constructor from a center and a direction vector

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

main constructor from a vector of keys

inline virtual ~Reflection2d()#

destructor

virtual Point apply(const Point &p) const#

computes the image of a point by the transformation

inline const std::vector<real_t> &axisDirection() const#

returns the direction vector of the reflection axis

inline const Point &axisPoint() const#

returns the point on the reflection axis

inline virtual Transformation *clone() const#

virtual copy constructor

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

print Transformation

inline virtual Reflection2d *reflection2d()#

access to child Reflection2d object

inline virtual const Reflection2d *reflection2d() const#

access to child Reflection2d object (const)