VTFLib
A C and C++ API that, with a few simple functions, can open and save .vtf and .vmt files.
|
Small math library used by VTFLib. More...
#include "stdafx.h"
Go to the source code of this file.
Data Structures | |
class | Vector |
Simple 3D Vector class. More... | |
class | VectorAligned |
Simple Aligned 3D Vector class. More... | |
Macros | |
#define | CACHE_LINE 16 |
Alignment size. | |
#define | drand48() (((vlSingle) rand())/((vlSingle) RAND_MAX)) |
Random number generator for the spheremap generation function. | |
Functions | |
void | VecAdd (Vector *a, Vector *b, Vector *sum) |
Vector addition function. | |
void | VecSub (Vector *a, Vector *b, Vector *diff) |
Vector subtraction function. | |
void | VecScale (Vector *v, vlSingle scale) |
Vector scale function. | |
vlSingle | VecDot (Vector *u, Vector *v) |
Vector dot-product function. | |
void | VecReflect (Vector *axis, Vector *v, Vector *r) |
Vector reflect function. | |
vlInt | Intersect (Vector *v) |
Vector intersect function. | |
Small math library used by VTFLib.
A small collection of math functions and defines used by VTFLib.