#include <Transform.hpp>
|
static const glm::mat4 | IdentityMatrix |
| The identity matrix. More...
|
|
static const glm::vec3 | Front |
| The default normalized front vector. More...
|
|
static const glm::vec3 | Right |
| The default normalized right vector. More...
|
|
static const glm::vec3 | Up |
| The default normalized up vector. More...
|
|
Definition at line 35 of file Transform.hpp.
jop::Transform::Transform |
( |
| ) |
|
Default constructor.
Sets the identity matrix
jop::Transform::Transform |
( |
const glm::mat4 & |
matrix | ) |
|
|
explicit |
glm::mat4& jop::Transform::getMatrix |
( |
| ) |
|
Get the transformation matrix.
- Returns
- Reference to the internal matrix
const glm::mat4& jop::Transform::getMatrix |
( |
| ) |
const |
Get the transformation matrix.
- Returns
- Reference to the internal matrix
Multiply this transform by another.
- Parameters
-
- Returns
- The combined transform
Multiply this transform by another.
- Parameters
-
- Returns
- Reference to self
void jop::Transform::rotate |
( |
const glm::quat & |
rotation | ) |
|
Rotate this transform.
- Parameters
-
rotation | The rotation offset |
void jop::Transform::scale |
( |
const glm::vec3 & |
scale | ) |
|
Scale this transform.
- Parameters
-
void jop::Transform::transformBounds |
( |
glm::vec3 & |
min, |
|
|
glm::vec3 & |
max |
|
) |
| const |
Transform a bounding box.
- Parameters
-
min | The minimum coordinates |
max | The maximum coordinates |
void jop::Transform::translate |
( |
const glm::vec3 & |
translation | ) |
|
Translate this transform.
- Parameters
-
translation | Translation offset |
const glm::vec3 jop::Transform::Front |
|
static |
The default normalized front vector.
Definition at line 143 of file Transform.hpp.
const glm::mat4 jop::Transform::IdentityMatrix |
|
static |
glm::mat4 jop::Transform::m_matrix |
|
protected |
const glm::vec3 jop::Transform::Right |
|
static |
The default normalized right vector.
Definition at line 144 of file Transform.hpp.
const glm::vec3 jop::Transform::Up |
|
static |
The documentation for this class was generated from the following file: