public interface AbsoluteUnit
An absolute unit is always a unit with an OffsetLinearScale. The offset defines how far away the origin of that absolute unit is compared to the base unit. The linear scale indicates in what default "steps" compared to the reference relative scale the absolute scale is used. For temperature, this is very clear. Degrees Celcius is shifted 273.15 compared to the origin of the Kelvin scale, and the linear unit is 1 (relatively, 1 Kelvin is one degree Celcius). For Degree Fahrenheit, the linear scale is 5/9, and the offset is 459.67. For Direction, North can be chosen as 0, and radians (SI) as the default angle. But one could also define a NORTH_DEGREES absolute direction unit, or a WEST_RADIANS one. Similar choices can be made for time and position.
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
Modifier and Type | Method and Description |
---|---|
double |
getOffset()
Return the offset to transform to the standard (reference) unit.
|
double |
getScaleFactor()
Return the scale factor to transform to the standard (reference) unit.
|
double getScaleFactor()
double getOffset()
Copyright © 2015–2018 Delft University of Technology. All rights reserved.