public class PositionUnit extends AbsoluteLinearUnit<PositionUnit,LengthUnit>
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2017-04-15 02:11:44 +0200 (Sat, 15 Apr 2017) $, @version $Revision: 239 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static PositionUnit |
ANGSTROM
Positions scaled to Angstrom = 10^-10 m.
|
static PositionUnit |
ASTRONOMICAL_UNIT
Positions scaled to Astronomical Unit = 149,597,870,700 m.
|
static PositionUnit |
ATTOMETER
Positions scaled to am.
|
static PositionUnit |
BASE
The BASE unit for position with an artificial zero-point.
|
static PositionUnit |
CENTIMETER
Positions scaled to cm.
|
static PositionUnit |
DECIMETER
Positions scaled to dm.
|
static PositionUnit |
DEKAMETER
Positions scaled to dam.
|
static PositionUnit |
FEMTOMETER
Positions scaled to fm.
|
static PositionUnit |
FOOT
Positions scaled to foot (international) = 0.3048 m = 1/3 yd = 12 inches.
|
static PositionUnit |
HECTOMETER
Positions scaled to hm.
|
static PositionUnit |
INCH
Positions scaled to inch (international) = 2.54 cm = 1/36 yd = 1/12 ft.
|
static PositionUnit |
KILOMETER
Positions scaled to km.
|
static PositionUnit |
LIGHTYEAR
Positions scaled to Lightyear = 9,460,730,472,580,800 m.
|
static PositionUnit |
MEGAMETER
Positions scaled to Mm.
|
static PositionUnit |
METER
Positions scaled to m.
|
static PositionUnit |
MICROMETER
Positions scaled to µm.
|
static PositionUnit |
MILE
Positions scaled to mile (international) = 5280 ft = 1760 yd.
|
static PositionUnit |
MILLIMETER
Positions scaled to mm.
|
static PositionUnit |
NANOMETER
Positions scaled to nm.
|
static PositionUnit |
NAUTICAL_MILE
Positions scaled to nautical mile (international) = 1852 m.
|
static PositionUnit |
PARSEC
Positions scaled to Parsec = 648,000 / PI Pc.
|
static PositionUnit |
PICOMETER
Positions scaled to pm.
|
static PositionUnit |
YARD
Positions scaled to yard (international) = 0.9144 m = 3 ft = 36 in.
|
STANDARD_UNITS
Constructor and Description |
---|
PositionUnit(String name,
String abbreviation,
UnitSystem unitSystem,
double scaleFactor,
double offset,
LengthUnit relativeUnit)
Build a user-defined PositionUnit with a scale factor and offset to the base PositionUnit.
|
Modifier and Type | Method and Description |
---|---|
String |
getSICoefficientsString() |
PositionUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getOffset, getRelativeUnit, getScale, hashCode
getScaleFactor
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getScaleFactor
public static final PositionUnit BASE
public static final PositionUnit ATTOMETER
public static final PositionUnit FEMTOMETER
public static final PositionUnit PICOMETER
public static final PositionUnit NANOMETER
public static final PositionUnit MICROMETER
public static final PositionUnit MILLIMETER
public static final PositionUnit METER
public static final PositionUnit CENTIMETER
public static final PositionUnit DECIMETER
public static final PositionUnit DEKAMETER
public static final PositionUnit HECTOMETER
public static final PositionUnit KILOMETER
public static final PositionUnit MEGAMETER
public static final PositionUnit INCH
public static final PositionUnit FOOT
public static final PositionUnit YARD
public static final PositionUnit MILE
public static final PositionUnit NAUTICAL_MILE
public static final PositionUnit ASTRONOMICAL_UNIT
public static final PositionUnit LIGHTYEAR
public static final PositionUnit PARSEC
public static final PositionUnit ANGSTROM
public PositionUnit(String name, String abbreviation, UnitSystem unitSystem, double scaleFactor, double offset, LengthUnit relativeUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialscaleFactor
- double; multiply a value in this unit by the factor to convert to the given reference unitoffset
- double; the offset to the reference unit to add to convert to the standard (e.g., BASE) unitrelativeUnit
- LengthUnit; the corresponding relative unit belonging to this absolute unitpublic final PositionUnit getStandardUnit()
getStandardUnit
in class Unit<PositionUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<PositionUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.