Class xlifepp::Homothety#

class Homothety : public xlifepp::Scaling#

representation of an homothety from a center and a factor

Subclassed by xlifepp::PointReflection

Public Functions

inline Homothety()#

default constructor

inline Homothety(const Parameter &p1)#

main constructor from one key

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

main constructor from 2 keys

inline Homothety(const Point &c, real_t factor = 1.)#

constructor from a center and a factor

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

main constructor from a vector of keys

inline virtual ~Homothety()#

destructor

inline virtual Transformation *clone() const#

virtual copy constructor

inline real_t factor() const#

returns the scale factor of the homothety

inline virtual Homothety *homothety()#

access to child Homothety object

inline virtual const Homothety *homothety() const#

access to child Homothety object (const)

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

print Transformation