public final class Point extends Object implements GsonSerializable
| Modifier and Type | Method and Description |
|---|---|
Point |
add(double x,
double y,
double z) |
static Point |
deserialize(com.google.gson.JsonElement element) |
boolean |
equals(Object o) |
Direction |
getDirection() |
Position |
getPosition() |
int |
hashCode() |
static Point |
of(Location location) |
static Point |
of(Position position,
Direction direction) |
com.google.gson.JsonObject |
serialize()
Serializes the object to JSON
|
Point |
subtract(double x,
double y,
double z) |
Location |
toLocation() |
String |
toString() |
VectorPoint |
toVectorPoint() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdeserialize, deserializeRaw, getDeserializeMethodpublic static Point deserialize(com.google.gson.JsonElement element)
public Position getPosition()
public Direction getDirection()
public Location toLocation()
public VectorPoint toVectorPoint()
public Point add(double x, double y, double z)
public Point subtract(double x, double y, double z)
@Nonnull public com.google.gson.JsonObject serialize()
GsonSerializableserialize in interface GsonSerializableCopyright © 2020. All rights reserved.