class TransformationLoader: public Loader<T, D>
{
protected:
- AffineTransformation<T, D> transformation;
+ AffineTransform<T, D> transformation;
public:
TransformationLoader();
if(offset.size()!=D)
throw std::invalid_argument("TransformationLoader::translate");
- transformation *= AffineTransformation<T, D>::translation(LinAl::Vector<T, D>(&offset[0]));
+ transformation *= AffineTransform<T, D>::translation(LinAl::Vector<T, D>(&offset[0]));
}
template<typename T, unsigned D>
LinAl::Vector<T, D> us;
for(unsigned i=0; i<D; ++i)
us[i] = s.front();
- transformation *= AffineTransformation<T, D>::scaling(us);
+ transformation *= AffineTransform<T, D>::scaling(us);
}
else
- transformation *= AffineTransformation<T, D>::scaling(LinAl::Vector<T, D>(&s[0]));
+ transformation *= AffineTransform<T, D>::scaling(LinAl::Vector<T, D>(&s[0]));
}
template<typename T, unsigned D>
if(s.size()!=2*D)
throw std::invalid_argument("TransformationLoader::shear");
- transformation *= AffineTransformation<T, D>::shear(LinAl::Vector<T, D>(&s[0]), LinAl::Vector<T, D>(&s[D]));
+ transformation *= AffineTransform<T, D>::shear(LinAl::Vector<T, D>(&s[0]), LinAl::Vector<T, D>(&s[D]));
}
template<typename T>
inline void ShapeLoader<TransformedShape<T, 2> >::rotate(T a)
{
- TransformationLoader<T, 2>::transformation *= AffineTransformation<T, 2>::rotation(Angle<T>::from_degrees(a));
+ TransformationLoader<T, 2>::transformation *= AffineTransform<T, 2>::rotation(Angle<T>::from_degrees(a));
}
template<typename T>
inline void ShapeLoader<TransformedShape<T, 3> >::rotate(T a, T x, T y, T z)
{
- TransformationLoader<T, 3>::transformation *= AffineTransformation<T, 3>::rotation(Angle<T>::from_degrees(a), LinAl::Vector<T, 3>(x, y, z));
+ TransformationLoader<T, 3>::transformation *= AffineTransform<T, 3>::rotation(Angle<T>::from_degrees(a), LinAl::Vector<T, 3>(x, y, z));
}