Psi Swarm Code V0.41 [With Beautiful Meme program]
Dependencies: PsiSwarmLibrary mbed
Fork of BeautifulMemeProjectBT by
Diff: vector.h
- Revision:
- 30:513457c1ad12
- Parent:
- 29:9756004e8499
--- a/vector.h Thu Mar 03 23:22:01 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -/// PsiSwarm Beautiful Meme Project Source Code -/// Version 0.4 -/// 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