template<class T>
AbstractBasicTranslationRotation2D class
Base transformation for two-dimensional scenes supporting translation and rotation.
Contents
See Polymorphic access to object transformation for more information.
Base classes
-
template<UnsignedInt dimensions, class T, class TranslationType = T>class AbstractTranslation
- Base transformation for two-dimensional scenes supporting translation.
Derived classes
-
template<class T>class AbstractBasicTranslationRotationScaling2D
- Base transformation for two-dimensional scenes supporting translation, rotation and scaling.
-
template<class T>class BasicDualComplexTransformation
- Two-dimensional transformation implemented using dual complex numbers.
-
template<class T>class BasicRigidMatrixTransformation2D
- Two-dimensional rigid transformation implemented using matrices.
Public functions
-
auto rotate(Math::
Rad<T> angle) -> AbstractBasicTranslationRotation2D<T>& - Rotate object.
-
auto rotateLocal(Math::
Rad<T> angle) -> AbstractBasicTranslationRotation2D<T>& - Rotate object as a local transformation.
Protected functions
-
void doRotate(Math::
Rad<T> angle) pure virtual - Polymorphic implementation for rotate()
-
void doRotateLocal(Math::
Rad<T> angle) pure virtual - Polymorphic implementation for rotateLocal()
Function documentation
template<class T>
AbstractBasicTranslationRotation2D<T>& Magnum:: SceneGraph:: AbstractBasicTranslationRotation2D<T>:: rotate(Math:: Rad<T> angle)
Rotate object.
Parameters | |
---|---|
angle | Angle (counterclockwise) |
Returns | Reference to self (for method chaining) |
template<class T>
AbstractBasicTranslationRotation2D<T>& Magnum:: SceneGraph:: AbstractBasicTranslationRotation2D<T>:: rotateLocal(Math:: Rad<T> angle)
Rotate object as a local transformation.
Similar to the above, except that the transformation is applied before all others.