Package org.vast.unit
Class UnitFunctionOffset
java.lang.Object
org.vast.unit.UnitFunction
org.vast.unit.UnitFunctionOffset
- All Implemented Interfaces:
Serializable
Implementation of an offset function for special units such as Cel...
- Since:
- Feb 10, 2007
- See Also:
-
Field Summary
FieldsFields inherited from class org.vast.unit.UnitFunction
printSymbol, scaleFactor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
fromProperUnit
(double value) int
hashCode()
double
toProperUnit
(double value) Methods inherited from class org.vast.unit.UnitFunction
createFunction, getPrintSymbol, getScaleFactor, setPrintSymbol, setScaleFactor
-
Field Details
-
offset
protected double offset
-
-
Constructor Details
-
UnitFunctionOffset
public UnitFunctionOffset(double offset)
-
-
Method Details
-
toProperUnit
public double toProperUnit(double value) - Specified by:
toProperUnit
in classUnitFunction
-
fromProperUnit
public double fromProperUnit(double value) - Specified by:
fromProperUnit
in classUnitFunction
-
equals
- Specified by:
equals
in classUnitFunction
-
hashCode
public int hashCode()- Specified by:
hashCode
in classUnitFunction
-
toString
- Specified by:
toString
in classUnitFunction
-