| 198 | |
| 199 | |
| 200 | Angle Angle::addHelper(const Angle &a) // TOCHECK |
| 201 | { |
| 202 | Angle temp = *this; |
| 203 | if (temp.neg == a.neg) |
| 204 | { |
| 205 | temp.d += a.d; |
| 206 | temp.m += a.m; |
| 207 | temp.s += a.s; |
| 208 | temp.t += a.t; |
| 209 | } |
| 210 | else |
| 211 | { |
| 212 | temp.d -= a.d; |
| 213 | temp.m -= a.m; |
| 214 | temp.s -= a.s; |
| 215 | temp.t -= a.t; |
| 216 | } |
| 217 | temp.normalize(); |
| 218 | |
| 219 | return temp; |
| 220 | } |
| 221 | |
| 222 | |
| 223 | Angle Angle::operator - (const Angle &a) // TOCHECK |