MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / length_squared

Method length_squared

libraries/AP_Math/vector2.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template <typename T>
24T Vector2<T>::length_squared() const
25{
26 return (T)(x*x + y*y);
27}
28
29template <typename T>
30T Vector2<T>::length(void) const

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36