public class AngleUnit extends Unit<AngleUnit>
Note that the Angle is counterclockwise.
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-08-10 10:39:38 +0200 (Fri, 10 Aug 2018) $, @version $Revision: 287 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static AngleUnit |
ARCMINUTE
arcminute.
|
static AngleUnit |
ARCSECOND
arcsecond.
|
static AngleUnit |
CENTESIMAL_ARCMINUTE
centesimal arcminute.
|
static AngleUnit |
CENTESIMAL_ARCSECOND
centesimal arcsecond.
|
static AngleUnit |
DEGREE
degree.
|
static AngleUnit |
GRAD
grad.
|
static AngleUnit |
PERCENT
percent (non-linear, 100% is 45 degrees; 90 degrees is infinite).
|
static AngleUnit |
RADIAN
radian.
|
static AngleUnit |
SI
The SI unit for angle is radian.
|
STANDARD_UNITS
Constructor and Description |
---|
AngleUnit(String name,
String abbreviation,
UnitSystem unitSystem,
AngleUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined unit with a conversion factor to another unit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsIgnoreNaming(Object obj)
Test if two units are the same, except for the name and abbreviation.
|
String |
getSICoefficientsString() |
AngleUnit |
getStandardUnit() |
int |
hashCode() |
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getScale, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final AngleUnit SI
public static final AngleUnit RADIAN
public static final AngleUnit PERCENT
public static final AngleUnit DEGREE
public static final AngleUnit ARCMINUTE
public static final AngleUnit ARCSECOND
public static final AngleUnit GRAD
public static final AngleUnit CENTESIMAL_ARCMINUTE
public static final AngleUnit CENTESIMAL_ARCSECOND
public AngleUnit(String name, String abbreviation, UnitSystem unitSystem, AngleUnit 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 AngleUnit getStandardUnit()
getStandardUnit
in class Unit<AngleUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<AngleUnit>
public boolean equalsIgnoreNaming(Object obj)
equalsIgnoreNaming
in class Unit<AngleUnit>
obj
- the object to compare withCopyright © 2015–2018 Delft University of Technology. All rights reserved.