X-Git-Url: http://git.tdb.fi/?p=libs%2Fmath.git;a=blobdiff_plain;f=source%2Fgeometry%2Floader.h;h=0a9c4b537c9ffbc90b11bb51cb48a28a70c10c87;hp=2aff83fb43371a3160f0a501cda223b9c54bea76;hb=HEAD;hpb=60caa19c84877c89d750140a90e5d891bce30ee7 diff --git a/source/geometry/loader.h b/source/geometry/loader.h index 2aff83f..0a9c4b5 100644 --- a/source/geometry/loader.h +++ b/source/geometry/loader.h @@ -140,7 +140,7 @@ template class TransformationLoader: public Loader { protected: - AffineTransformation transformation; + AffineTransform transformation; public: TransformationLoader(); @@ -349,7 +349,7 @@ inline void TransformationLoader::translate(const std::vector &offset) if(offset.size()!=D) throw std::invalid_argument("TransformationLoader::translate"); - transformation *= AffineTransformation::translation(LinAl::Vector(&offset[0])); + transformation *= AffineTransform::translation(LinAl::Vector(&offset[0])); } template @@ -363,10 +363,10 @@ inline void TransformationLoader::scale(const std::vector &s) LinAl::Vector us; for(unsigned i=0; i::scaling(us); + transformation *= AffineTransform::scaling(us); } else - transformation *= AffineTransformation::scaling(LinAl::Vector(&s[0])); + transformation *= AffineTransform::scaling(LinAl::Vector(&s[0])); } template @@ -375,7 +375,7 @@ inline void TransformationLoader::shear(const std::vector &s) if(s.size()!=2*D) throw std::invalid_argument("TransformationLoader::shear"); - transformation *= AffineTransformation::shear(LinAl::Vector(&s[0]), LinAl::Vector(&s[D])); + transformation *= AffineTransform::shear(LinAl::Vector(&s[0]), LinAl::Vector(&s[D])); } @@ -388,7 +388,7 @@ inline ShapeLoader >::ShapeLoader() template inline void ShapeLoader >::rotate(T a) { - TransformationLoader::transformation *= AffineTransformation::rotation(Angle::from_degrees(a)); + TransformationLoader::transformation *= AffineTransform::rotation(Angle::from_degrees(a)); } @@ -401,7 +401,7 @@ inline ShapeLoader >::ShapeLoader() template inline void ShapeLoader >::rotate(T a, T x, T y, T z) { - TransformationLoader::transformation *= AffineTransformation::rotation(Angle::from_degrees(a), LinAl::Vector(x, y, z)); + TransformationLoader::transformation *= AffineTransform::rotation(Angle::from_degrees(a), LinAl::Vector(x, y, z)); }