Psi Swarm Code V0.41 [With Beautiful Meme program]
Dependencies: PsiSwarmLibrary mbed
Fork of BeautifulMemeProjectBT by
Diff: BeautifulMeme/vector.h
- Revision:
- 30:513457c1ad12
diff -r 9756004e8499 -r 513457c1ad12 BeautifulMeme/vector.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BeautifulMeme/vector.h Tue Mar 15 00:58:43 2016 +0000 @@ -0,0 +1,21 @@ +/// PsiSwarm Beautiful Meme Project Source Code +/// Version 0.41 +/// James Hilder, Alan Millard, Homero Elizondo, Jon Timmis +/// University of York + +// vector.h - Functions for calculating floating point bearing vectors + +#ifndef VECTOR_H +#define VECTOR_H + +#define TO_DEG 57.2958 +#define TO_RAD 0.017453 + +struct FloatVector{ + float angle; + float distance; +}; + +struct FloatVector addVector(struct FloatVector in_Vector, int angle, int distance); + +#endif \ No newline at end of file