#include <math.h>
#include <stdlib.h>
#include <ostream>
Go to the source code of this file.
Classes | |
struct | mat3 |
struct | mat4 |
struct | quat |
struct | vec2 |
struct | vec3 |
struct | vec4 |
Defines | |
#define | DEG2RAD (PI / 180.0f) |
#define | PI 3.14159265358979323846f |
#define | RAD2DEG (180.0f / PI) |
Functions | |
vec3 | absolute (const vec3 &v1) |
vec3 | cross (const vec3 &v1, const vec3 &v2) |
unsigned int | ilog2 (unsigned int value) |
vec3 | normalize (const vec3 &v) |
vec4 | normalize (const vec4 &v) |
std::ostream & | operator<< (std::ostream &out, const mat3 &m) |
vec3 | saturate (const vec3 &v) |
vec4 | saturate (const vec4 &v) |
Variables | |
const float | epsilon = 1e-6f |
Definition at line 32 of file tgMathlib.h.
#define PI 3.14159265358979323846f |
Definition at line 28 of file tgMathlib.h.
#define RAD2DEG (180.0f / PI) |
Definition at line 33 of file tgMathlib.h.
Definition at line 200 of file tgMathlib.h.
Definition at line 192 of file tgMathlib.h.
unsigned int ilog2 | ( | unsigned int | value | ) | [inline] |
Definition at line 46 of file tgMathlib.h.
Definition at line 186 of file tgMathlib.h.
Definition at line 292 of file tgMathlib.h.
std::ostream& operator<< | ( | std::ostream & | out, |
const mat3 & | m | ||
) |
Definition at line 3 of file tgMathlib.cpp.
Definition at line 208 of file tgMathlib.h.
Definition at line 298 of file tgMathlib.h.
const float epsilon = 1e-6f |
Definition at line 44 of file tgMathlib.h.