Package org.djunits.unit
Class LengthUnit
- All Implemented Interfaces:
Serializable,Cloneable
Standard length units. Several conversion factors have been taken from
https://en.wikipedia.org/wiki/Conversion_of_units.
Copyright (c) 2015-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License
- Author:
- Alexander Verbraeck
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.djunits.unit.Unit
Unit.Builder<U extends Unit<U>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LengthUnitAngstrom = 10^-10 m.static final LengthUnitAstronomical Unit = 149,597,870,700 m.static final Quantity<LengthUnit>The base, with "m" as the SI signature.static final LengthUnitcm.static final LengthUnitdam.static final LengthUnitdm.static final LengthUnitfoot (international) = 0.3048 m = 1/3 yd = 12 inches.static final LengthUnithm.static final LengthUnitinch (international) = 2.54 cm = 1/36 yd = 1/12 ft.static final LengthUnitkm.static final LengthUnitLightyear = 9,460,730,472,580,800 m.static final LengthUnitmeter.static final LengthUnitµm.static final LengthUnitmile (international) = 5280 ft = 1760 yd.static final LengthUnitmm.static final LengthUnitnm.static final LengthUnitnautical mile (international) = 1852 m.static final LengthUnitParsec = 648,000 / PI ly.static final LengthUnitThe SI unit for length is meter.static final LengthUnityard (international) = 0.9144 m = 3 ft = 36 in. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.djunits.unit.Unit
build, clone, deriveLinear, deriveLinear, deriveLinear, derivePerSI, deriveSI, deriveSI, deriveSIKilo, equals, getDefaultAbbreviations, getDefaultDisplayAbbreviation, getDefaultTextualAbbreviation, getId, getLocalizedAbbreviations, getLocalizedDisplayAbbreviation, getLocalizedTextualAbbreviation, getName, getQuantity, getScale, getStandardUnit, getUnit, getUnitSystem, hashCode, isBaseSIUnit, isGenerated, lookupOrCreateUnitWithSIDimensions, makeBuilder, toString
-
Field Details
-
BASE
The base, with "m" as the SI signature. -
SI
The SI unit for length is meter. -
METER
meter. -
NANOMETER
nm. -
MICROMETER
µm. -
MILLIMETER
mm. -
CENTIMETER
cm. -
DECIMETER
dm. -
DECAMETER
dam. -
HECTOMETER
hm. -
KILOMETER
km. -
FOOT
foot (international) = 0.3048 m = 1/3 yd = 12 inches. -
INCH
inch (international) = 2.54 cm = 1/36 yd = 1/12 ft. -
YARD
yard (international) = 0.9144 m = 3 ft = 36 in. -
MILE
mile (international) = 5280 ft = 1760 yd. -
NAUTICAL_MILE
nautical mile (international) = 1852 m. -
ASTRONOMICAL_UNIT
Astronomical Unit = 149,597,870,700 m. -
LIGHTYEAR
Lightyear = 9,460,730,472,580,800 m. -
PARSEC
Parsec = 648,000 / PI ly. -
ANGSTROM
Angstrom = 10^-10 m.
-
-
Constructor Details
-
LengthUnit
public LengthUnit()
-