46 lines
616 B
C
46 lines
616 B
C
|
|
#ifndef _vector3
|
||
|
|
|
||
|
|
#define _vector3
|
||
|
|
|
||
|
|
|
||
|
|
// Macros
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#include "stdlib.h"
|
||
|
|
|
||
|
|
extern char * __ClassNames[];
|
||
|
|
|
||
|
|
|
||
|
|
// Includes
|
||
|
|
|
||
|
|
#include "application.h"
|
||
|
|
|
||
|
|
|
||
|
|
typedef struct vector3{
|
||
|
|
|
||
|
|
unsigned short __classIndex;
|
||
|
|
|
||
|
|
float x;
|
||
|
|
|
||
|
|
float y;
|
||
|
|
|
||
|
|
float z;
|
||
|
|
|
||
|
|
|
||
|
|
} vector3;
|
||
|
|
|
||
|
|
void vector3_constructor( vector3 * this, float x, float y, float z );
|
||
|
|
|
||
|
|
vector3 * vector3_operator_plus( vector3 * this, vector3 * b );
|
||
|
|
|
||
|
|
vector3 * vector3_operator_add( vector3 * this, vector3 * b );
|
||
|
|
|
||
|
|
void vector3_add( vector3 * this, vector3 * b );
|
||
|
|
|
||
|
|
vector3 vector3_new( float x, float y, float z );
|
||
|
|
|
||
|
|
vector3 * vector3_newPointer( float x, float y, float z );
|
||
|
|
|
||
|
|
#endif
|