Package org.djunits.unit
Class LengthUnit
- java.lang.Object
-
- org.djunits.unit.Unit<LengthUnit>
-
- org.djunits.unit.LengthUnit
-
- All Implemented Interfaces:
Serializable,Cloneable
public class LengthUnit extends Unit<LengthUnit>
Standard length units. Several conversion factors have been taken from https://en.wikipedia.org/wiki/Conversion_of_units.Copyright (c) 2015-2022 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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.djunits.unit.Unit
Unit.Builder<U extends Unit<U>>
-
-
Field Summary
Fields Modifier and Type Field Description static LengthUnitANGSTROMAngstrom = 10^-10 m.static LengthUnitASTRONOMICAL_UNITAstronomical Unit = 149,597,870,700 m.static Quantity<LengthUnit>BASEThe base, with "m" as the SI signature.static LengthUnitCENTIMETERcm.static LengthUnitDECAMETERdam.static LengthUnitDECIMETERdm.static LengthUnitFOOTfoot (international) = 0.3048 m = 1/3 yd = 12 inches.static LengthUnitHECTOMETERhm.static LengthUnitINCHinch (international) = 2.54 cm = 1/36 yd = 1/12 ft.static LengthUnitKILOMETERkm.static LengthUnitLIGHTYEARLightyear = 9,460,730,472,580,800 m.static LengthUnitMETERmeter.static LengthUnitMICROMETERµm.static LengthUnitMILEmile (international) = 5280 ft = 1760 yd.static LengthUnitMILLIMETERmm.static LengthUnitNANOMETERnm.static LengthUnitNAUTICAL_MILEnautical mile (international) = 1852 m.static LengthUnitPARSECParsec = 648,000 / PI ly.static LengthUnitSIThe SI unit for length is meter.static LengthUnitYARDyard (international) = 0.9144 m = 3 ft = 36 in.
-
Constructor Summary
Constructors Constructor Description LengthUnit()
-
Method Summary
-
Methods inherited from class org.djunits.unit.Unit
build, clone, deriveLinear, deriveLinear, deriveLinear, derivePerSI, deriveSI, deriveSI, deriveSIKilo, equals, getAbbreviations, getDefaultDisplayAbbreviation, getDefaultTextualAbbreviation, getId, getName, getQuantity, getScale, getStandardUnit, getUnit, getUnitSystem, hashCode, isBaseSIUnit, isGenerated, lookupOrCreateUnitWithSIDimensions, makeBuilder, toString
-
-
-
-
Field Detail
-
BASE
public static final Quantity<LengthUnit> BASE
The base, with "m" as the SI signature.
-
SI
public static final LengthUnit SI
The SI unit for length is meter.
-
METER
public static final LengthUnit METER
meter.
-
NANOMETER
public static final LengthUnit NANOMETER
nm.
-
MICROMETER
public static final LengthUnit MICROMETER
µm.
-
MILLIMETER
public static final LengthUnit MILLIMETER
mm.
-
CENTIMETER
public static final LengthUnit CENTIMETER
cm.
-
DECIMETER
public static final LengthUnit DECIMETER
dm.
-
DECAMETER
public static final LengthUnit DECAMETER
dam.
-
HECTOMETER
public static final LengthUnit HECTOMETER
hm.
-
KILOMETER
public static final LengthUnit KILOMETER
km.
-
FOOT
public static final LengthUnit FOOT
foot (international) = 0.3048 m = 1/3 yd = 12 inches.
-
INCH
public static final LengthUnit INCH
inch (international) = 2.54 cm = 1/36 yd = 1/12 ft.
-
YARD
public static final LengthUnit YARD
yard (international) = 0.9144 m = 3 ft = 36 in.
-
MILE
public static final LengthUnit MILE
mile (international) = 5280 ft = 1760 yd.
-
NAUTICAL_MILE
public static final LengthUnit NAUTICAL_MILE
nautical mile (international) = 1852 m.
-
ASTRONOMICAL_UNIT
public static final LengthUnit ASTRONOMICAL_UNIT
Astronomical Unit = 149,597,870,700 m.
-
LIGHTYEAR
public static final LengthUnit LIGHTYEAR
Lightyear = 9,460,730,472,580,800 m.
-
PARSEC
public static final LengthUnit PARSEC
Parsec = 648,000 / PI ly.
-
ANGSTROM
public static final LengthUnit ANGSTROM
Angstrom = 10^-10 m.
-
-