11
22[ ![ Arduino CI] ( https://github.com/RobTillaart/Angle/workflows/Arduino%20CI/badge.svg )] ( https://github.com/marketplace/actions/arduino_ci )
3+ [ ![ Arduino-lint] ( https://github.com/RobTillaart/Angle/actions/workflows/arduino-lint.yml/badge.svg )] ( https://github.com/RobTillaart/Angle/actions/workflows/arduino-lint.yml )
4+ [ ![ JSON check] ( https://github.com/RobTillaart/Angle/actions/workflows/jsoncheck.yml/badge.svg )] ( https://github.com/RobTillaart/Angle/actions/workflows/jsoncheck.yml )
35[ ![ License: MIT] ( https://img.shields.io/badge/license-MIT-green.svg )] ( https://github.com/RobTillaart/Angle/blob/master/LICENSE )
46[ ![ GitHub release] ( https://img.shields.io/github/release/RobTillaart/Angle.svg?maxAge=3600 )] ( https://github.com/RobTillaart/Angle/releases )
57
68
79# Angle
810
9- Arduino library for basic math for Angles in degrees, minute, seconds and tenthousands .
11+ Arduino library for basic math for Angles in degrees, minute, seconds and ten-thousands .
1012
1113
1214## Description
1315
14- Angle is an Arduino class to print, compare and do basic math with angles
15- in degrees, minutes seconds and tenthousands . The class was created to be
16+ Angle is an Arduino class to print, compare and do basic maths with angles
17+ in degrees, minutes seconds and ten-thousands . The class was created to be
1618able to print an angle with minutes and seconds instead of as a floating point
1719or radians.
1820
19- To make the library more useful basic math ( + - \* / )
21+ To make the library more useful basic maths ( + - \* / )
2022and comparisons ( == != < <= > >= ) are added to the class.
2123
2224The library implements the Printable interface, allowing one to call
@@ -30,7 +32,7 @@ The library implements the Printable interface, allowing one to call
3032
3133- ** Angle(int dd=0, int mm=0, int ss=0, int tt=0)** create an Angle, default is zero.
3234- ** Angle(double alpha)** create an Angle from a double.
33- - ** Angle(char \* str)** creat an Angle from a string e.g. "45.31234".
35+ - ** Angle(char \* str)** create an Angle from a string e.g. "45.31234".
3436
3537
3638### base
@@ -39,14 +41,14 @@ The library implements the Printable interface, allowing one to call
3941- ** int degree()** returns # degrees
4042- ** int minute()** returns # minutes
4143- ** int second()** returns # seconds
42- - ** int tenthousand()** returns # tenthousands of a second
44+ - ** int tenthousand()** returns # ten-thousands of a second
4345
4446
4547### Conversions
4648
47- - ** toDouble()** returns the angle as a double (float)
48- - ** toRadians()** retuns the angle in radians (0..TWO_PI)
49- - ** fromRadian()**
49+ - ** double toDouble()** returns the angle as a double (0..360.0, float on UNO )
50+ - ** double toRadians()** returns the angle in radians (0..TWO_PI)
51+ - ** void fromRadian(double rad )** create an angle from radians.
5052
5153
5254### Equality operators
0 commit comments