Geno3D
A simple 3D visualisation library, using C++/SFML.
 All Classes Functions Variables
Public Member Functions | List of all members
Geno3D::Transformable Class Referenceabstract

#include <Transformable.hpp>

Inheritance diagram for Geno3D::Transformable:
Geno3D::Camera Geno3D::Light Geno3D::Object Geno3D::Transformation Geno3D::OrthCamera Geno3D::PerspCamera Geno3D::SunLight

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
 

Detailed Description

An interface for transforming points and vectors in 3D space.

Member Function Documentation

virtual void Geno3D::Transformable::rotate ( float  x,
float  y,
float  z 
)
pure virtual

Rotate by Euler angles, in radians.

Parameters
xthe angle to rotate by about the x-axis
ythe angle to rotate by about the y-axis
zthe angle to rotate by about the z-axis

Implemented in Geno3D::Object, Geno3D::SunLight, Geno3D::Camera, and Geno3D::Transformation.

virtual void Geno3D::Transformable::scale ( float  m)
pure virtual

Scale by a factor.

Parameters
mthe factor to scale by

Implemented in Geno3D::Object, Geno3D::SunLight, Geno3D::Camera, and Geno3D::Transformation.

virtual void Geno3D::Transformable::transform ( const Transformation t)
pure virtual

Transform by a compound transformation.

Parameters
tthe transformation to apply

Implemented in Geno3D::Object, Geno3D::Camera, Geno3D::SunLight, and Geno3D::Transformation.

virtual void Geno3D::Transformable::translate ( float  x,
float  y,
float  z 
)
pure virtual

Translate by a 3D vector.

Parameters
xthe amount to translate in the x-axis
ythe amount to translate in the y-axis
zthe amount to translate in the z-axis

Implemented in Geno3D::Object, Geno3D::SunLight, Geno3D::Camera, and Geno3D::Transformation.


The documentation for this class was generated from the following file: