Sc2ApiSerializable<SC2APIProtocol.Common.Point>
, java.io.Serializable
public final class Point extends java.lang.Object implements Sc2ApiSerializable<SC2APIProtocol.Common.Point>
Modifier and Type | Method | Description |
---|---|---|
Point |
add(Point pointToAdd) |
|
double |
distance(Point b) |
|
Point |
div(float divBy) |
|
float |
dot(Point b) |
|
boolean |
equals(java.lang.Object o) |
|
static Point |
from(SC2APIProtocol.Common.Point sc2ApiPoint) |
|
float |
getX() |
|
float |
getY() |
|
float |
getZ() |
|
int |
hashCode() |
|
Point |
mul(float mulBy) |
|
static Point |
of(float x,
float y) |
|
static Point |
of(float x,
float y,
float z) |
|
Point |
sub(float subX,
float subY,
float subZ) |
|
Point |
sub(Point pointToSubtract) |
|
Point2d |
toPoint2d() |
|
SC2APIProtocol.Common.Point |
toSc2Api() |
|
java.lang.String |
toString() |
public static Point of(float x, float y)
public static Point of(float x, float y, float z)
public static Point from(SC2APIProtocol.Common.Point sc2ApiPoint)
public SC2APIProtocol.Common.Point toSc2Api()
toSc2Api
in interface Sc2ApiSerializable<SC2APIProtocol.Common.Point>
public float getX()
public float getY()
public float getZ()
public Point sub(float subX, float subY, float subZ)
public Point div(float divBy)
public Point mul(float mulBy)
public double distance(Point b)
public float dot(Point b)
public Point2d toPoint2d()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017–2018 Ocraft Project. All rights reserved.