kettek2/wiki/games/newsboy/Newsboy_0x00/engine/Vector.h

20 lines
505 B
C

#ifndef VECTOR_H
#define VECTOR_H
typedef struct Vector {
float x;
float y;
float z;
} Vector;
int cleanVector(struct Vector *vector);
Vector addVector(struct Vector dst, struct Vector src);
Vector subVector(struct Vector dst, struct Vector src);
struct Vector mulVector(struct Vector dst, double mul);
struct Vector divVector(struct Vector dst, double div);
float dotVectors(struct Vector dst, struct Vector src);
float magVector(struct Vector dst);
Vector normVector(struct Vector dst);
#endif