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

Method subHelper

libraries/Angle/Angle.cpp:236–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235
236Angle Angle::subHelper(const Angle &a) // TOCHECK
237{
238 Angle temp = *this;
239 if (temp.neg == a.neg)
240 {
241 temp.d -= a.d;
242 temp.m -= a.m;
243 temp.s -= a.s;
244 temp.t -= a.t;
245 }
246 else
247 {
248 temp.d += a.d;
249 temp.m += a.m;
250 temp.s += a.s;
251 temp.t += a.t;
252 }
253 temp.normalize();
254 return temp;
255}
256
257
258Angle Angle::operator * (const double dd)

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.80

Tested by

no test coverage detected