- return _format;
- }
-
-
- /**
- * Get the altitude value in the specified format
- * @param inFormat desired format, either FORMAT_METRES or FORMAT_FEET
- * @return value as an int
- */
- public int getValue(Format inFormat)
- {
- // Note possible rounding errors here if converting to/from units
- if (inFormat == _format)
- return _value;
- if (inFormat == Format.METRES)
- return (int) (_value * CONVERT_FEET_TO_METRES);
- if (inFormat == Format.FEET)
- return (int) (_value * CONVERT_METRES_TO_FEET);
- return _value;