public class AngleUnit extends Unit<AngleUnit>
Note that the Angle is counterclockwise.
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: 2019-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, 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, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getScale, getSICoefficients, getTextualRepresentations, 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
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialreferenceUnit
- AngleUnit; the unit to convert toscaleFactorToReferenceUnit
- double; 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
- Object; the object to compare withCopyright © 2015–2019 Delft University of Technology. All rights reserved.