public class TripleAxisMessage extends java.lang.Object implements CustomGlobalEncoder
ControlType.OBJECT message.| Constructor and Description |
|---|
TripleAxisMessage()
Default constructor with zero values
|
TripleAxisMessage(float x,
float y,
float z)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
encodeGlobalMessage() |
boolean |
equals(java.lang.Object other) |
float |
getX()
Get X axis value
|
float |
getY()
Get Y axis value
|
float |
getZ()
Get Z axis value
|
TripleAxisMessage |
restore(java.lang.Object restore_data)
Decode the data based on how it is encoded.
|
void |
setX(float x)
Set X axis value
|
void |
setY(float y)
Set Y axis value
|
void |
setZ(float z)
Set Z axis value
|
java.lang.String |
toString() |
public TripleAxisMessage()
public TripleAxisMessage(float x,
float y,
float z)
x - x_valuey - y_valuez - z_valuepublic java.lang.Object[] encodeGlobalMessage()
encodeGlobalMessage in interface CustomGlobalEncoderpublic TripleAxisMessage restore(java.lang.Object restore_data)
CustomGlobalEncoderrestore in interface CustomGlobalEncoderrestore_data - the encoded or decoded datapublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic float getX()
public float getY()
public float getZ()
public void setX(float x)
x - new axis valuepublic void setY(float y)
y - new axis valuepublic void setZ(float z)
z - new axis value