MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / addHelper

Method addHelper

libraries/Angle/Angle.cpp:200–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199
200Angle 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
223Angle Angle::operator - (const Angle &a) // TOCHECK

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected