Nebula
|
#include <transform44.h>
A 4x4 matrix which is described by translation, rotation and scale.
Public Member Functions | |
transform44 () | |
constructor | |
transform44 (const transform44 &rhs)=default | |
constructor | |
bool | operator== (const transform44 &rhs) const |
equality operator | |
void | loadu (const scalar *ptr) |
load content from unaligned memory | |
void | storeu (scalar *ptr) const |
write content to unaligned memory through the write cache | |
void | setposition (const vec3 &p) |
set position | |
void | setposition (const point &p) |
set position | |
const point & | getposition () const |
get position | |
void | setrotate (const quat &r) |
set rotate | |
const quat & | getrotate () const |
get rotate | |
void | setscale (const vec3 &s) |
set scale | |
const vec3 & | getscale () const |
get scale | |
void | setrotatepivot (const point &p) |
set optional rotate pivot | |
const point & | getrotatepivot () const |
get optional rotate pivot | |
void | setscalepivot (const point &p) |
set optional scale pivot | |
const point & | getscalepivot () const |
get optional scale pivot | |
void | setoffset (const mat4 &m) |
set optional offset matrix | |
const mat4 & | getoffset () const |
get optional offset matrix | |
const mat4 & | getmatrix () |
get resulting 4x4 matrix | |
bool | isdirty () const |
return true if the transformation matrix is dirty | |
Private Attributes | |
point | position |
quat | rotate |
vec3 | scale |
point | rotatePivot |
point | scalePivot |
mat4 | offset |
mat4 | matrix |
bool | isDirty |
bool | offsetValid |
|
inline |
constructor
|
default |
constructor
|
inline |
get resulting 4x4 matrix
|
inline |
get optional offset matrix
|
inline |
get position
|
inline |
get rotate
|
inline |
get optional rotate pivot
|
inline |
get scale
|
inline |
get optional scale pivot
|
inline |
return true if the transformation matrix is dirty
__forceinline void Math::transform44::loadu | ( | const scalar * | ptr | ) |
load content from unaligned memory
|
inline |
equality operator
|
inline |
set optional offset matrix
|
inline |
set position
|
inline |
set position
|
inline |
set rotate
|
inline |
set optional rotate pivot
|
inline |
set scale
|
inline |
set optional scale pivot
__forceinline void Math::transform44::storeu | ( | scalar * | ptr | ) | const |
write content to unaligned memory through the write cache
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |