amplitude method

double amplitude()

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);
}