VOX
A little voxel engine
Loading...
Searching...
No Matches
Transform Class Reference

#include <Transform.hpp>

Collaboration diagram for Transform:
Collaboration graph

Public Member Functions

 Transform (const glm::vec3 &position=glm::vec3(0.0f, 0.0f, 0.0f), const glm::vec3 &rotation=glm::vec3(0.0f, 0.0f, 0.0f), const glm::vec3 &scale=glm::vec3(1.0f, 1.0f, 1.0f), const Transform *parent=nullptr)
 
glm::dmat4 model () const
 

Public Attributes

glm::dvec3 position
 
glm::dvec3 rotation
 
glm::dvec3 scale
 
const Transformparent
 

Constructor & Destructor Documentation

◆ Transform()

Transform::Transform ( const glm::vec3 &  position = glm::vec3(0.0f, 0.0f, 0.0f),
const glm::vec3 &  rotation = glm::vec3(0.0f, 0.0f, 0.0f),
const glm::vec3 &  scale = glm::vec3(1.0f, 1.0f, 1.0f),
const Transform parent = nullptr 
)
inline

Member Function Documentation

◆ model()

glm::dmat4 Transform::model ( ) const
inline

Member Data Documentation

◆ parent

const Transform* Transform::parent

◆ position

glm::dvec3 Transform::position

◆ rotation

glm::dvec3 Transform::rotation

◆ scale

glm::dvec3 Transform::scale

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