public class LengthUnit extends LinearUnit<LengthUnit>
Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2018-01-28 03:17:44 +0100 (Sun, 28 Jan 2018) $, @version $Revision: 256 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static LengthUnit |
ANGSTROM
Angstrom = 10^-10 m.
|
static LengthUnit |
ASTRONOMICAL_UNIT
Astronomical Unit = 149,597,870,700 m.
|
static LengthUnit |
ATTOMETER
am.
|
static LengthUnit |
CENTIMETER
cm.
|
static LengthUnit |
DECIMETER
dm.
|
static LengthUnit |
DEKAMETER
dam.
|
static LengthUnit |
FEMTOMETER
fm.
|
static LengthUnit |
FOOT
foot (international) = 0.3048 m = 1/3 yd = 12 inches.
|
static LengthUnit |
HECTOMETER
hm.
|
static LengthUnit |
INCH
inch (international) = 2.54 cm = 1/36 yd = 1/12 ft.
|
static LengthUnit |
KILOMETER
km.
|
static LengthUnit |
LIGHTYEAR
Lightyear = 9,460,730,472,580,800 m.
|
static LengthUnit |
MEGAMETER
Mm.
|
static LengthUnit |
METER
m.
|
static LengthUnit |
MICROMETER
µm.
|
static LengthUnit |
MILE
mile (international) = 5280 ft = 1760 yd.
|
static LengthUnit |
MILLIMETER
mm.
|
static LengthUnit |
NANOMETER
nm.
|
static LengthUnit |
NAUTICAL_MILE
nautical mile (international) = 1852 m.
|
static LengthUnit |
PARSEC
Parsec = 648,000 / PI Pc.
|
static LengthUnit |
PICOMETER
pm.
|
static LengthUnit |
SI
The SI unit for length is meter.
|
static LengthUnit |
YARD
yard (international) = 0.9144 m = 3 ft = 36 in.
|
STANDARD_UNITS
Constructor and Description |
---|
LengthUnit(String name,
String abbreviation,
UnitSystem unitSystem,
LengthUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined LengthUnit with a conversion factor to another LengthUnit.
|
Modifier and Type | Method and Description |
---|---|
String |
getSICoefficientsString() |
LengthUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final LengthUnit SI
public static final LengthUnit ATTOMETER
public static final LengthUnit FEMTOMETER
public static final LengthUnit PICOMETER
public static final LengthUnit NANOMETER
public static final LengthUnit MICROMETER
public static final LengthUnit MILLIMETER
public static final LengthUnit METER
public static final LengthUnit CENTIMETER
public static final LengthUnit DECIMETER
public static final LengthUnit DEKAMETER
public static final LengthUnit HECTOMETER
public static final LengthUnit KILOMETER
public static final LengthUnit MEGAMETER
public static final LengthUnit INCH
public static final LengthUnit FOOT
public static final LengthUnit YARD
public static final LengthUnit MILE
public static final LengthUnit NAUTICAL_MILE
public static final LengthUnit ASTRONOMICAL_UNIT
public static final LengthUnit LIGHTYEAR
public static final LengthUnit PARSEC
public static final LengthUnit ANGSTROM
public LengthUnit(String name, String abbreviation, UnitSystem unitSystem, LengthUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or ImperialreferenceUnit
- the unit to convert toscaleFactorToReferenceUnit
- multiply a value in this unit by the factor to convert to the given reference unitpublic final LengthUnit getStandardUnit()
getStandardUnit
in class Unit<LengthUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<LengthUnit>
Copyright © 2015–2018 Delft University of Technology. All rights reserved.