Nebula
Loading...
Searching...
No Matches
Math::transform44 Class Reference

#include <transform44.h>

Detailed Description

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 pointgetposition () const
 get position
 
void setrotate (const quat &r)
 set rotate
 
const quatgetrotate () const
 get rotate
 
void setscale (const vec3 &s)
 set scale
 
const vec3getscale () const
 get scale
 
void setrotatepivot (const point &p)
 set optional rotate pivot
 
const pointgetrotatepivot () const
 get optional rotate pivot
 
void setscalepivot (const point &p)
 set optional scale pivot
 
const pointgetscalepivot () const
 get optional scale pivot
 
void setoffset (const mat4 &m)
 set optional offset matrix
 
const mat4getoffset () const
 get optional offset matrix
 
const mat4getmatrix ()
 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
 

Constructor & Destructor Documentation

◆ transform44() [1/2]

Math::transform44::transform44 ( )
inline

constructor

◆ transform44() [2/2]

Math::transform44::transform44 ( const transform44 & rhs)
default

constructor

Member Function Documentation

◆ getmatrix()

const mat4 & Math::transform44::getmatrix ( )
inline

get resulting 4x4 matrix

◆ getoffset()

const mat4 & Math::transform44::getoffset ( ) const
inline

get optional offset matrix

◆ getposition()

const point & Math::transform44::getposition ( ) const
inline

get position

◆ getrotate()

const quat & Math::transform44::getrotate ( ) const
inline

get rotate

◆ getrotatepivot()

const point & Math::transform44::getrotatepivot ( ) const
inline

get optional rotate pivot

◆ getscale()

const vec3 & Math::transform44::getscale ( ) const
inline

get scale

◆ getscalepivot()

const point & Math::transform44::getscalepivot ( ) const
inline

get optional scale pivot

◆ isdirty()

bool Math::transform44::isdirty ( ) const
inline

return true if the transformation matrix is dirty

◆ loadu()

__forceinline void Math::transform44::loadu ( const scalar * ptr)

load content from unaligned memory

◆ operator==()

bool Math::transform44::operator== ( const transform44 & rhs) const
inline

equality operator

◆ setoffset()

void Math::transform44::setoffset ( const mat4 & m)
inline

set optional offset matrix

◆ setposition() [1/2]

void Math::transform44::setposition ( const point & p)
inline

set position

◆ setposition() [2/2]

void Math::transform44::setposition ( const vec3 & p)
inline

set position

◆ setrotate()

void Math::transform44::setrotate ( const quat & r)
inline

set rotate

◆ setrotatepivot()

void Math::transform44::setrotatepivot ( const point & p)
inline

set optional rotate pivot

◆ setscale()

void Math::transform44::setscale ( const vec3 & s)
inline

set scale

◆ setscalepivot()

void Math::transform44::setscalepivot ( const point & p)
inline

set optional scale pivot

◆ storeu()

__forceinline void Math::transform44::storeu ( scalar * ptr) const

write content to unaligned memory through the write cache

Member Data Documentation

◆ isDirty

bool Math::transform44::isDirty
private

◆ matrix

mat4 Math::transform44::matrix
private

◆ offset

mat4 Math::transform44::offset
private

◆ offsetValid

bool Math::transform44::offsetValid
private

◆ position

point Math::transform44::position
private

◆ rotate

quat Math::transform44::rotate
private

◆ rotatePivot

point Math::transform44::rotatePivot
private

◆ scale

vec3 Math::transform44::scale
private

◆ scalePivot

point Math::transform44::scalePivot
private

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