deepstone

annotate src/vmath.h @ 15:4a0e9ab12ad0

separated vec2/vec3/vec4 in a different header file
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 29 Nov 2011 07:23:12 +0200
parents
children 00d84ab1ef26
rev   line source
nuclear@15 1 #ifndef VMATH_H_
nuclear@15 2 #define VMATH_H_
nuclear@15 3
nuclear@15 4 typedef struct {
nuclear@15 5 float x, y, z, w;
nuclear@15 6 } vec4_t;
nuclear@15 7
nuclear@15 8 typedef struct {
nuclear@15 9 float x, y, z;
nuclear@15 10 } vec3_t;
nuclear@15 11
nuclear@15 12 typedef struct {
nuclear@15 13 float x, y;
nuclear@15 14 } vec2_t;
nuclear@15 15
nuclear@15 16
nuclear@15 17 #endif /* VMATH_H_ */