Class xlifepp::Translation#

class Translation : public xlifepp::Transformation#

Inheritence diagram for xlifepp::Translation:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "1" [label="xlifepp::Translation" tooltip="xlifepp::Translation" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::Translation:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "3" [label="xlifepp::Matrix< real_t >" tooltip="xlifepp::Matrix< real_t >"] "8" [label="xlifepp::Vector< real_t >" tooltip="xlifepp::Vector< real_t >"] "5" [label="std::vector< T >" tooltip="std::vector< T >"] "7" [label="std::vector< K >" tooltip="std::vector< K >"] "10" [label="std::vector< const xlifepp::Transformation * >" tooltip="std::vector< const xlifepp::Transformation * >"] "4" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "6" [label="xlifepp::Matrix< K >" tooltip="xlifepp::Matrix< K >"] "2" [label="xlifepp::Transformation" tooltip="xlifepp::Transformation"] "1" [label="xlifepp::Translation" tooltip="xlifepp::Translation" fillcolor="#BFBFBF"] "9" [label="xlifepp::Vector< K >" tooltip="xlifepp::Vector< K >"] "3" -> "4" [dir=forward tooltip="public-inheritance"] "3" -> "6" [dir=forward tooltip="template-instance"] "8" -> "4" [dir=forward tooltip="public-inheritance"] "8" -> "9" [dir=forward tooltip="template-instance"] "7" -> "5" [dir=forward tooltip="template-instance"] "10" -> "5" [dir=forward tooltip="template-instance"] "4" -> "5" [dir=forward tooltip="template-instance"] "6" -> "7" [dir=forward tooltip="public-inheritance"] "2" -> "3" [dir=forward tooltip="usage"] "2" -> "8" [dir=forward tooltip="usage"] "2" -> "10" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "1" -> "4" [dir=forward tooltip="usage"] "9" -> "7" [dir=forward tooltip="public-inheritance"] }

representation of a translation of vector u

Public Functions

Translation()#

default constructor

inline Translation(const Parameter &p)#

main constructor from one key

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

main constructor from a vector of keys

inline Translation(real_t ux, real_t uy = 0., real_t uz = 0.)#

constructor from 3 values

inline Translation(std::vector<real_t> u)#

constructor with a vector of real numbers

virtual Point apply(const Point &p) const#

computes the image of a point by the transformation

inline virtual Transformation *clone() const#

virtual copy constructor

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

print Transformation

inline virtual Translation *translation()#

access to child Translation object

inline virtual const Translation *translation() const#

access to child Translation object (const)

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

accessor to vector u