#include <Transformable.hpp>
Public Member Functions | |
| virtual void | translate (float x, float y, float z)=0 |
| virtual void | scale (float m)=0 |
| virtual void | rotate (float x, float y, float z)=0 |
| virtual void | transform (const Transformation &t)=0 |
An interface for transforming points and vectors in 3D space.
|
pure virtual |
Rotate by Euler angles, in radians.
| x | the angle to rotate by about the x-axis |
| y | the angle to rotate by about the y-axis |
| z | the angle to rotate by about the z-axis |
Implemented in Geno3D::Object, Geno3D::SunLight, Geno3D::Camera, and Geno3D::Transformation.
|
pure virtual |
Scale by a factor.
| m | the factor to scale by |
Implemented in Geno3D::Object, Geno3D::SunLight, Geno3D::Camera, and Geno3D::Transformation.
|
pure virtual |
Transform by a compound transformation.
| t | the transformation to apply |
Implemented in Geno3D::Object, Geno3D::Camera, Geno3D::SunLight, and Geno3D::Transformation.
|
pure virtual |
Translate by a 3D vector.
| x | the amount to translate in the x-axis |
| y | the amount to translate in the y-axis |
| z | the amount to translate in the z-axis |
Implemented in Geno3D::Object, Geno3D::SunLight, Geno3D::Camera, and Geno3D::Transformation.
1.8.6