Tramway SDK
Namespaces | Functions
math.cpp File Reference
#include <framework/math.h>

Namespaces

namespace  tram
 

Functions

void tram::QuatLookAt (quat &quaternion, const vec3 &from, const vec3 &to)
 
void tram::ProjectLine (vec3 &point, const vec3 &from, const vec3 &to)
 
vec3 tram::RayTriangleIntersection (vec3 ray_pos, vec3 ray_dir, vec3 point1, vec3 point2, vec3 point3)
 
vec3 tram::MergeAABBMin (vec3 a, vec3 b)
 
vec3 tram::MergeAABBMax (vec3 a, vec3 b)
 
void tram::RotateAABB (vec3 &min, vec3 &max, quat rotation)
 
mat4 tram::PositionRotationToMatrix (const vec3 &position, const quat &rotation)
 
mat4 tram::PositionRotationScaleToMatrix (const vec3 &position, const quat &rotation, const vec3 &scale)