UnitLength
A unit of measure for length.
Declaration
class UnitLengthOverview
You typically use instances of UnitLength to represent specific quantities of length using the NSMeasurement class.
Length
Length is the dimensional extent of matter. The SI unit for length is the meter (m), which is defined in terms of the distance traveled by light in a vacuum.
The UnitLength class defines its baseUnit() as meters, and provides the following units, which are initialized using UnitConverterLinear converters with the specified coefficients:
Name | Method | Symbol | Coefficient |
|---|---|---|---|
Megameters | Mm |
| |
Kilometers | kM |
| |
Hectometers | hm |
| |
Decameters | dam |
| |
Meters | m |
| |
Decimeters | dm |
| |
Centimeters | cm |
| |
Millimeters | mm |
| |
Micrometers | µm |
| |
Nanometers | nm |
| |
Picometers | pm |
| |
Inches | in |
| |
Feet | ft |
| |
Yards | yd |
| |
Miles | mi |
| |
Scandinavian Miles | smi |
| |
Light Years | ly |
| |
Nautical Miles | NM |
| |
Fathoms | ftm |
| |
Furlongs | fur |
| |
Astronomical Units | au |
| |
Parsecs | pc |
|
Topics
Accessing the Base Unit
Accessing Predefined Units
megameterskilometershectometersdecametersmetersdecimeterscentimetersmillimetersmicrometersnanometerspicometersinchesfeetyardsmilesscandinavianMileslightyearsnauticalMilesfathomsfurlongsastronomicalUnitsparsecs