@@ -31,7 +31,15 @@ The library implements the Printable interface, allowing one to call
3131Degree sign ° = ALT-0176 (Windows)
3232
3333
34- #### Related
34+ ### Note
35+
36+ The library has not been tested extensively and it could still contain bugs.
37+ Especially the constructor does not check input so use it carefully.
38+
39+ As always feedback is welcome
40+
41+
42+ ### Related
3543
3644- https://github.com/RobTillaart/AngleConvertor
3745- https://github.com/RobTillaart/AverageAngle
@@ -45,53 +53,42 @@ Degree sign ° = ALT-0176 (Windows)
4553#include " Angle.h"
4654```
4755
48- #### Constructors
56+ ### Constructors
4957
5058- ** Angle(int dd = 0, int mm = 0, int ss = 0, int tt = 0)** create an Angle, default is zero.
5159- ** Angle(double alpha)** create an Angle from a double.
5260- ** Angle(char \* str)** create an Angle from a string e.g. "45.31234".
5361
62+ ### Base
5463
55- #### Base
56-
57- - ** int sign()** returns -1 or 1.
64+ - ** bool isZero()** returns true if angle is 0.
65+ - ** int sign()** returns -1 or 1. Zero degrees will return 1.
5866- ** int degree()** returns # degrees.
5967- ** int minute()** returns # minutes.
6068- ** int second()** returns # seconds.
6169- ** int tenthousand()** returns # ten-thousands of a second.
6270
63-
64- #### Conversions
71+ ### Conversions
6572
6673- ** double toDouble()** returns the angle as a double (0..360.0, float on UNO).
6774- ** double toRadians()** returns the angle in radians (0..TWO_PI).
6875- ** void fromRadian(double rad)** create an angle from radians.
6976
70- More conversions - https://github.com/RobTillaart/AngleConvertor
77+ For more conversions check - https://github.com/RobTillaart/AngleConvertor
7178
7279
73- #### Equality operators
80+ ### Equality operators
7481
7582The library supports equality operator "==", "!=", "<" "<=" ">" and ">=" .
7683
7784
78- #### Math operators
85+ ### Math operators
7986
87+ The library supports:
8088- ** negate** returns -angle.
8189- ** addition** and ** subtract** add angles to angles.
8290- ** multiplication** and ** division** multiply an angle with a double.
83- - ** ratio** ratio = Angle/Angle.
84-
85-
86- ## Operation
87-
88- See examples.
89-
90-
91- ## Note
92-
93- The library has not been tested extensively and it could still contain bugs.
94- Especially the constructor does not check input so use it carefully.
91+ - ** ratio** ratio = Angle/Angle.
9592
9693
9794## Future
0 commit comments