Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
template <typename T>
24
T Vector2<T>::length_squared() const
25
{
26
return (T)(x*x + y*y);
27
}
28
29
template <typename T>
30
T Vector2<T>::length(void) const
Callers
15
update
Method · 0.45
predictAHRS
Method · 0.45
adjust_velocity_inclusion_circles
Method · 0.45
adjust_velocity_exclusion_circles
Method · 0.45
is_close_to_item_in_database
Method · 0.45
intersects_fence
Method · 0.45
update
Method · 0.45
calc_margin_from_circular_fence
Method · 0.45
calc_margin_from_inclusion_and_exclusion_circles
Method · 0.45
realignYawGPS
Method · 0.45
calculate_orientation
Method · 0.45
attitude_from_thrust_vector
Method · 0.45
Calls
no outgoing calls
Tested by
3
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36