]> git.tdb.fi Git - libs/math.git/blobdiff - source/geometry/transformedshape.h
Rename AffineTransformation to AffineTransform
[libs/math.git] / source / geometry / transformedshape.h
index 9387123508dcf081341c076f8c4e41970a10ead0..168fbd9732e960dfbc79dc254cb281e8553859f1 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef MSP_GEOMETRY_TRANSFORMEDSHAPE_H_
 #define MSP_GEOMETRY_TRANSFORMEDSHAPE_H_
 
-#include "affinetransformation.h"
+#include "affinetransform.h"
 #include "shape.h"
 
 namespace Msp {
@@ -15,11 +15,11 @@ class TransformedShape: public Shape<T, D>
 {
 private:
        Shape<T, D> *shape;
-       AffineTransformation<T, D> transformation;
-       AffineTransformation<T, D> inverse_trans;
+       AffineTransform<T, D> transformation;
+       AffineTransform<T, D> inverse_trans;
 
 public:
-       TransformedShape(const Shape<T, D> &, const AffineTransformation<T, D> &);
+       TransformedShape(const Shape<T, D> &, const AffineTransform<T, D> &);
        TransformedShape(const TransformedShape &);
        TransformedShape &operator=(const TransformedShape &);
        ~TransformedShape();
@@ -27,7 +27,7 @@ public:
        virtual TransformedShape *clone() const;
 
        const Shape<T, D> &get_shape() const { return *shape; }
-       const AffineTransformation<T, D> &get_transformation() const { return transformation; }
+       const AffineTransform<T, D> &get_transformation() const { return transformation; }
 
        virtual BoundingBox<T, D> get_axis_aligned_bounding_box(unsigned = 0) const;
        virtual bool contains(const LinAl::Vector<T, D> &) const;
@@ -37,7 +37,7 @@ public:
 };
 
 template<typename T, unsigned D>
-inline TransformedShape<T, D>::TransformedShape(const Shape<T, D> &s, const AffineTransformation<T, D> &t):
+inline TransformedShape<T, D>::TransformedShape(const Shape<T, D> &s, const AffineTransform<T, D> &t):
        shape(s.clone()),
        transformation(t),
        inverse_trans(invert(t))