Nebula
Loading...
Searching...
No Matches
mat4.cc File Reference
#include "math/sse.h"
#include "math/mat4.h"
#include "math/quat.h"
#include "math/euler.h"

Namespaces

namespace  Math
 Different curves.
 

Functions

mat4 Math::reflect (const vec4 &p)
 based on this http://www.opengl.org/discussion_boards/showthread.php/169605-reflection-matrix-how-to-derive
 
void Math::decompose (const mat4 &mat, vec3 &outScale, quat &outRotation, vec3 &outTranslation)
 
mat4 Math::affine (const vec3 &scale, const vec3 &rotationCenter, const quat &rotation, const vec3 &translation)
 
mat4 Math::affine (const vec3 &scale, const quat &rotation, const vec3 &translation)
 
mat4 Math::affine (const vec3 &scale, const vec3 &rotation, const vec3 &translation)
 
mat4 Math::affinetransformation (scalar scale, const vec3 &rotationCenter, const quat &rotation, const vec3 &translation)
 
mat4 Math::rotationquat (const quat &q)
 TODO: rewrite using SSE.
 
mat4 Math::transformation (const vec3 &scalingCenter, const quat &scalingRotation, const vec3 &scale, const vec3 &rotationCenter, const quat &rotation, const vec3 &trans)
 
bool Math::ispointinside (const vec4 &p, const mat4 &m)
 
mat4 Math::fromeuler (const vec3 &v)
 
vec3 Math::aseuler (const mat4 &m)