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.
Point.h
- Committer:
- erikkallen
- Date:
- 2010-10-19
- Revision:
- 1:1d2eb2143108
File content as of revision 1:1d2eb2143108:
#ifndef MOTOR_POINT_H #define MOTOR_POINT_H #include "mbed.h" #define PI 3.14159265359 class Point { public: Point(float x, float y); Point(); float getX(); float getY(); void setX(float x); void setY(float y); static Point DegreesToXY(float degrees, float radius, Point origin); static float XYToDegrees(Point xy, Point origin); private: float _x; float _y; }; #endif