public class Point32 extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_X
The name of the x field for the message.
|
static String |
FIELD_Y
The name of the y field for the message.
|
static String |
FIELD_Z
The name of the z field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
Point32()
Create a new Point32 with all 0s.
|
Point32(float x,
float y,
float z)
Create a new Point32 with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
Point32 |
clone()
Create a clone of this Point32.
|
static Point32 |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new Point32 based on the given JSON object.
|
static Point32 |
fromJsonString(String jsonString)
Create a new Point32 based on the given JSON string.
|
static Point32 |
fromMessage(Message m)
Create a new Point32 based on the given Message.
|
float |
getX()
Get the x value of this point.
|
float |
getY()
Get the y value of this point.
|
float |
getZ()
Get the z value of this point.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_X
public static final String FIELD_Y
public static final String FIELD_Z
public static final String TYPE
public Point32()
public Point32(float x,
float y,
float z)
x - The x value of the point.y - The y value of the point.z - The z value of the point.public float getX()
public float getY()
public float getZ()
public static Point32 fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static Point32 fromMessage(Message m)
m - The Message to parse.public static Point32 fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.