Units

The Fusion API provides convenience functions for converting between units of measurement. Units of measurement are specified by a string in most configuration files, but the API uses a numeric code internally. These numeric codes are defined as attributes of the Fusion object. The following table lists the Fusion attribute and associated unit name and abbreviations that are associated with them.

If the units are not specified, the default units are Fusion.UNKNOWN.

Unit Code Name Abbreviation Valid Strings
Fusion.UNKNOWN Unknown unk unknown
Fusion.INCHES Inches in inches inch in
Fusion.FEET Feet ft feet ft
Fusion.YARDS Yards yd yards yard yd
Fusion.MILES Miles mi miles mile mi
Fusion.NAUTICALMILES Nautical Miles nm nautical miles nautical mile nm
Fusion.MILLIMETERS Millimeters mm millimeters millimeter mm
Fusion.CENTIMETERS Centimeters cm centimeters centimeter cm
Fusion.METERS Meters m meters meter m
Fusion.KILOMETERS Kilometers km kilometers kilometer km
Fusion.DEGREES Degrees ° degrees degree deg
Fusion.DECIMALDEGREES Decimal Degrees ° decimal degrees dd
Fusion.DMS Degrees Minutes Seconds ° degrees minutes seconds
Fusion.PIXELS Pixels px pixels pixel px