mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
28 lines
860 B
Markdown
28 lines
860 B
Markdown
|
# Angle
|
||
|
|
||
|
Arduino library for basic math for Angles in degrees, minute, seconds
|
||
|
|
||
|
## Description
|
||
|
|
||
|
Angle is an Arduino class to print, compare and do basic math with angles
|
||
|
in degrees, minutes seconds and tenthousands. The class was created to be
|
||
|
able to print an angle with minutes and seconds instead of as a floating point
|
||
|
or radians.
|
||
|
|
||
|
To make the library more useful basic math (+ - \* / )
|
||
|
and comparisons ( == != < <= > >= )
|
||
|
are added to the class.
|
||
|
|
||
|
## Operation
|
||
|
|
||
|
There are three constructors
|
||
|
* Angle(int dd=0, int mm=0, int ss=0, int tt=0);
|
||
|
* Angle(double alpha);
|
||
|
* Angle(char * str); // str represents a double as string e.g. "45.31234"
|
||
|
|
||
|
For other functions and operators check examples for now.
|
||
|
|
||
|
## Note
|
||
|
The library has not been tested extensively and it could still contain
|
||
|
bugs. Especially the constructor does not check input so use it carefully.
|