de.jreality.scene.tool
Class AxisState
java.lang.Object
de.jreality.scene.tool.AxisState
- All Implemented Interfaces:
- java.io.Serializable
public final class AxisState
- extends java.lang.Object
- implements java.io.Serializable
Represents a button or a double value for tools.
- See Also:
- Serialized Form
Constructor Summary |
AxisState(double value)
double must be in the range [-1,1] |
AxisState(int value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PRESSED
public static final AxisState PRESSED
ORIGIN
public static final AxisState ORIGIN
AxisState
public AxisState(double value)
- double must be in the range [-1,1]
- Parameters:
value
-
AxisState
public AxisState(int value)
intValue
public int intValue()
doubleValue
public double doubleValue()
isPressed
public boolean isPressed()
- returns true if the double value is 1 or -1.
- Returns:
isReleased
public boolean isReleased()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object