6#define EXTERNC extern "C"
16EXTERNC Vector*
vectorSet(Vector* vec,
float x,
float y);
17EXTERNC Vector*
vectorAdd(Vector* vec,
float x,
float y);
18EXTERNC Vector*
vectorMul(Vector* vec,
float v);
19EXTERNC Vector*
rotate(Vector* vec,
float angle);
20EXTERNC Vector*
addWithAngle(Vector* vec,
float angle,
float length);
21EXTERNC
float angleTo(Vector* vec,
float x,
float y);
22EXTERNC
float distanceTo(Vector* vec,
float x,
float y);
28#define VEC_XY(v) v.x, v.y
Vector * vectorSet(Vector *vec, float x, float y)
Definition: vector.c:5
Vector * rotate(Vector *vec, float angle)
Definition: vector.c:23
Vector * vectorAdd(Vector *vec, float x, float y)
Definition: vector.c:11
Vector * addWithAngle(Vector *vec, float angle, float length)
Definition: vector.c:30
float distanceTo(Vector *vec, float x, float y)
Definition: vector.c:40
Vector * vectorMul(Vector *vec, float v)
Definition: vector.c:17
float vectorLength(Vector *vec)
Definition: vector.c:48
float vectorAngle(Vector *vec)
Definition: vector.c:46
float angleTo(Vector *vec, float x, float y)
Definition: vector.c:36