template<class T>
Magnum::SceneGraph::AbstractBasicTranslationRotationScaling2D class

Base transformation for two-dimensional scenes supporting translation, rotation and scaling.

See Polymorphic access to object transformation for more information.

Base classes

template<class T>
class AbstractBasicTranslationRotation2D
Base transformation for two-dimensional scenes supporting translation and rotation.

Derived classes

template<class T>
class BasicMatrixTransformation2D
Two-dimensional transformation implemented using matrices.
template<class T>
class BasicTranslationRotationScalingTransformation2D
Two-dimensional transformation implemented using translation, rotation and scaling.

Public functions

auto scale(const Math::Vector2<T>& vector) -> AbstractBasicTranslationRotationScaling2D<T>&
Scale object.
auto scaleLocal(const Math::Vector2<T>& vector) -> AbstractBasicTranslationRotationScaling2D<T>&
Scale object as a local transformation.

Protected functions

void doScale(const Math::Vector2<T>& vector) pure virtual
Polymorphic implementation for scale()
void doScaleLocal(const Math::Vector2<T>& vector) pure virtual
Polymorphic implementation for scaleLocal()

Function documentation

template<class T>
AbstractBasicTranslationRotationScaling2D<T>& Magnum::SceneGraph::AbstractBasicTranslationRotationScaling2D<T>::scale(const Math::Vector2<T>& vector)

Scale object.

Returns Reference to self (for method chaining)

template<class T>
AbstractBasicTranslationRotationScaling2D<T>& Magnum::SceneGraph::AbstractBasicTranslationRotationScaling2D<T>::scaleLocal(const Math::Vector2<T>& vector)

Scale object as a local transformation.

Similar to the above, except that the transformation is applied before all others.