GY-63_MS5611/libraries/Angle/README.md

28 lines
860 B
Markdown
Raw Normal View History

2020-11-27 05:10:47 -05:00
# 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.