Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
Transform Class Reference
Inheritance diagram for Transform:
[legend]

Public Member Functions

 Transform (glm::vec3 center=glm::vec3(0), float scale=1.0)
 
 Transform (const Transform &transform, const glm::vec3 &positionDelta, const glm::quat &orientationDelta)
 
const glm::vec3 & position () const
 
void setPosition (const glm::vec3 &pos)
 
const glm::quat & orientation () const
 
void setOrientation (const glm::quat &quat)
 
const glm::vec3 & center () const
 
void setCenter (const glm::vec3 &center)
 
void setCenterAndAdjustPosition (const glm::vec3 &newCenter)
 
float scale () const
 
void setScale (float scale)
 
void move (const glm::vec3 &dist)
 
void moveWorld (const glm::vec3 &dist)
 
void rotate (const glm::quat &qrot)
 
void rotateWorld (const glm::quat &qrot)
 
bool operator== (const Transform &other) const
 
bool operator!= (const Transform &other) const
 
const glm::mat4 matrix () const
 
glm::vec3 applyTo (const glm::vec3 &vertex) const
 
glm::vec3 inverseApplyTo (const glm::vec3 &vertex) const
 

Protected Attributes

glm::vec3 m_position
 
glm::quat m_orientation
 
glm::vec3 m_center
 
float m_scale
 

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