Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RETRO_BallsAndPaddle RETRO_BallAndHoles
Diff: Vector.h
- Revision:
- 2:74bc9b16fb88
- Parent:
- 0:3d0db4e183ee
--- a/Vector.h Fri Feb 06 10:18:02 2015 +0000
+++ b/Vector.h Wed Feb 25 10:43:15 2015 +0000
@@ -9,7 +9,7 @@
Vector();
Vector(float fX, float fY);
- void set(float dX, float fY);
+ void set(float fX, float fY);
void set(int nX, int nY);
float getSize();
bool isLeft();
@@ -19,4 +19,7 @@
void add(float fAdd);
void add(Vector vAdd);
void multiply(Vector vMult);
+ Vector getNormal();
+ Vector getNormalized();
+ void bounce(Vector vBounce);
};