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

Method getAverageLength

libraries/AverageAngle/AverageAngle.cpp:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74float AverageAngle::getAverageLength()
75{
76 if (_count == 0) return 0;
77 return hypot(_sumy, _sumx) / _count;
78}
79
80
81AverageAngle::AngleType AverageAngle::type()

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64