#include <math.h>
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | mat3 |
struct | mat4 |
struct | quat |
struct | vec2 |
struct | vec3< T > |
struct | vec4< T > |
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) |
vec3 | saturate (const vec3 &v) |
vec4 | saturate (const vec4 &v) |
Variables | |
const float | epsilon = 1e-6f |
Definition at line 31 of file tgMathlib.h.
#define PI 3.14159265358979323846f |
Definition at line 27 of file tgMathlib.h.
#define RAD2DEG (180.0f / PI) |
Definition at line 32 of file tgMathlib.h.
Definition at line 199 of file tgMathlib.h.
Definition at line 191 of file tgMathlib.h.
unsigned int ilog2 | ( | unsigned int | value | ) | [inline] |
Definition at line 45 of file tgMathlib.h.
Definition at line 185 of file tgMathlib.h.
Definition at line 291 of file tgMathlib.h.
Definition at line 207 of file tgMathlib.h.
Definition at line 297 of file tgMathlib.h.
const float epsilon = 1e-6f |
Definition at line 43 of file tgMathlib.h.