|
| const vec3 | tram::DIRECTION_FORWARD (0.0f, 0.0f, -1.0f) |
| |
| const vec3 | tram::DIRECTION_SIDE (1.0f, 0.0f, 0.0f) |
| |
| const vec3 | tram::DIRECTION_UP (0.0f, 1.0f, 0.0f) |
| |
| const vec3 | tram::IDENTITY_POSITION (0.0f, 0.0f, 0.0f) |
| |
| const quat | tram::IDENTITY_ROTATION (1.0f, 0.0f, 0.0f, 0.0f) |
| |
| const vec3 | tram::IDENTITY_SCALE (1.0f, 1.0f, 1.0f) |
| |
| 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...
|
| |