|
Tramway SDK v0.1.1
|
GLM typedefs and useful math functions. More...
#include <framework/math.h>Namespaces | |
| namespace | tram |
| Serialization, i.e. | |
Functions | |
| void | tram::QuatLookAt (quat &quaternion, const vec3 &from, const vec3 &to) |
| Rotates a quaternion to face a point. More... | |
| void | tram::ProjectLine (vec3 &point, const vec3 &from, const vec3 &to) |
| Projects a point on a line. More... | |
| vec3 | tram::RayTriangleIntersection (vec3 ray_pos, vec3 ray_dir, vec3 point1, vec3 point2, vec3 point3) |
| Finds the intersection between a ray and a triangle. More... | |
| vec3 | tram::MergeAABBMin (vec3 a, vec3 b) |
| Merges the min component of an AABB. More... | |
| vec3 | tram::MergeAABBMax (vec3 a, vec3 b) |
| Merges the max component of an AABB. More... | |
| void | tram::RotateAABB (vec3 &min, vec3 &max, quat rotation) |
| Rotates an AABB box by the given rotation. More... | |
| void | tram::RotateAABB (vec3 &min, vec3 &max, mat4 rotation) |
| mat4 | tram::PositionRotationToMatrix (const vec3 &position, const quat &rotation) |
| Generates a transform matrix. More... | |
| mat4 | tram::PositionRotationScaleToMatrix (const vec3 &position, const quat &rotation, const vec3 &scale) |
| Generates a transform matrix. More... | |
GLM typedefs and useful math functions.