#include <SRTTransform.h>
|
| | SRTTransform (float s, const glm::vec3 &r, const glm::vec3 &t) |
| |
| virtual glm::mat4 | propagate (const glm::mat4 &inhTransform, float inhScale, float *totalScale) |
| |
| virtual void | update () |
| |
|
|
float | s |
| |
|
glm::vec3 | r |
| |
|
glm::vec3 | t |
| |
Calculates a matrix from a given translation vector, rotation vector and uniform scale factor.
| SRTTransform::SRTTransform |
( |
float |
s, |
|
|
const glm::vec3 & |
r, |
|
|
const glm::vec3 & |
t |
|
) |
| |
Creates a new transform that (from right to left) scales, rotates and translates
- Parameters
-
| s | scale factor |
| r | pan, tilt, roll |
| t | translation vector |
| glm::mat4 SRTTransform::propagate |
( |
const glm::mat4 & |
inhTransform, |
|
|
float |
inhScale, |
|
|
float * |
totalScale |
|
) |
| |
|
virtual |
Returns the model transformation which is calculated from the model transformation of this node's parent and the local transformation. Also calculated the scale separately.
- Parameters
-
| inhTransform | parent transformation |
| inhScale | parent scale |
| [out] | totalScale | total scale of this node |
- Returns
- model transformation of this node
Implements Transform.
| void SRTTransform::update |
( |
) | |
|
|
virtual |
Called before propagation. Calculates the local transform internally.
Implements Transform.
The documentation for this class was generated from the following files: