Unit
This enum represents different units of measurement. While not strictly integral to Pathfinder's core operation, it is included to facilitate unit conversions when needed.
Enum Constants
INCH
Represents inches. Its value is 1 inch.
CM
Represents centimeters. Its value is approximately 0.3937 inches.
M
Represents meters. Its value is approximately 39.37 inches.
KM
Represents kilometers. Its value is approximately 39370 inches.
MM
Represents millimeters. Its value is approximately 0.03937 inches.
MILE
Represents miles. Its value is 63360 inches.
YARD
Represents yards. Its value is 36 inches.
FOOT
Represents feet. Its value is 12 inches.
NAUTICAL_MILE
Represents nautical miles. Its value is 72913 inches.
Methods
getValueInInches()
Returns the unit's value in inches.
inches(double a)
Converts a provided value (a) from this unit into inches.
reciprocal(double a)
Returns the reciprocal of the provided value multiplied by the unit's value in inches. The documentation for this method is intentionally vague in the original source code.