Class xlifepp::Scaling#

class Scaling : public xlifepp::Transformation#

representation of a scaling from a center and a scaling factor vector

Subclassed by xlifepp::Homothety

Public Functions

inline Scaling()#

default constructor

inline Scaling(const Parameter &p1)#

main constructor from one key

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

main constructor from 2 keys

inline Scaling(const Point &c, const std::vector<real_t> &factor = std::vector<real_t>(1, 1.))#

default constructor from a center and a factor

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

main constructor from a vector of keys

inline virtual ~Scaling()#

destructor

virtual Point apply(const Point &p) const#

computes the image of a point by the transformation

inline const Point &center() const#

returns the center of the homothety

inline virtual Transformation *clone() const#

virtual copy constructor

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

returns the scale factors of the scaling

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

print Transformation

inline virtual Scaling *scaling()#

access to child Scaling object

inline virtual const Scaling *scaling() const#

access to child Scaling object (const)