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 TypeMethodDescriptionbooleandoublefromProperUnit(double value) inthashCode()doubletoProperUnit(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:
toProperUnitin classUnitFunction
-
fromProperUnit
public double fromProperUnit(double value) - Specified by:
fromProperUnitin classUnitFunction
-
equals
- Specified by:
equalsin classUnitFunction
-
hashCode
public int hashCode()- Specified by:
hashCodein classUnitFunction
-
toString
- Specified by:
toStringin classUnitFunction
-