de.jreality.scene.tool
Class AxisState
java.lang.Object
de.jreality.scene.tool.AxisState
- All Implemented Interfaces:
- Serializable
public final class AxisState
- extends Object
- implements 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)
|
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 String toString()
- Overrides:
toString
in class Object