Class xlifepp::Reflection3d#

class Reflection3d : public xlifepp::Transformation#

representation of a reflection on a plane

Public Functions

Reflection3d()#

default constructor

inline Reflection3d(const Parameter &p1)#

main constructor from one key

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

main constructor from 2 keys

inline Reflection3d(const Point &c, real_t nx, real_t ny, real_t nz)#

constructor from a center and coordinates of the direction vector

inline Reflection3d(const Point &c, std::vector<real_t> n)#

constructor from a center and a normal vector

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

main constructor from a vector of keys

inline virtual ~Reflection3d()#

constructor from a center and coordinates of the normal vector of the plane

virtual Point apply(const Point &p) const#

computes the image of a point by the transformation

inline virtual Transformation *clone() const#

virtual copy constructor

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

returns the normal vector of the reflection plane

inline const Point &planePoint() const#

returns the point on the reflection plane

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

print Transformation

inline virtual Reflection3d *reflection3d()#

access to child Reflection3d object

inline virtual const Reflection3d *reflection3d() const#

access to child Reflection3d object (const)

std::vector<real_t> u() const#

returns a vector “in” the plane

std::vector<real_t> v() const#

returns another vector “in” the plane