amplitude method
Calculates the amplitude of the Direction vector.
Returns: double: The amplitude of the Direction vector.
Implementation
double amplitude() {
return sqrt(roll * roll + pitch * pitch + heading * heading);
}
Calculates the amplitude of the Direction vector.
Returns: double: The amplitude of the Direction vector.
double amplitude() {
return sqrt(roll * roll + pitch * pitch + heading * heading);
}