Tramway SDK
Namespaces | Typedefs | Functions
math.h File Reference
#include <glm/glm.hpp>
#include <glm/gtx/quaternion.hpp>

Go to the source code of this file.

Namespaces

namespace  tram
 

Typedefs

typedef glm::vec3 tram::vec3
 
typedef glm::quat tram::quat
 
typedef glm::mat2 tram::mat2
 
typedef glm::mat4 tram::mat4
 
typedef glm::vec4 tram::vec4
 
typedef glm::vec2 tram::vec2
 
typedef glm::ivec3 tram::ivec3
 
typedef glm::ivec4 tram::ivec4
 
typedef glm::uvec3 tram::uvec3
 
typedef glm::uvec4 tram::uvec4
 

Functions

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)
 
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)
 
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)