Sc2ApiSerializable<SC2APIProtocol.Common.PointI>
, java.io.Serializable
public final class PointI extends java.lang.Object implements Sc2ApiSerializable<SC2APIProtocol.Common.PointI>
Modifier and Type | Method | Description |
---|---|---|
PointI |
add(PointI pointToAdd) |
|
double |
distance(PointI b) |
|
PointI |
div(int divBy) |
|
int |
dot(PointI b) |
|
boolean |
equals(java.lang.Object o) |
|
static PointI |
from(SC2APIProtocol.Common.PointI sc2ApiPointI) |
|
int |
getX() |
|
int |
getY() |
|
int |
hashCode() |
|
PointI |
mul(int mulBy) |
|
static PointI |
of(int x,
int y) |
|
PointI |
sub(PointI pointToSubtract) |
|
Point2d |
toPoint2d() |
|
SC2APIProtocol.Common.PointI |
toSc2Api() |
|
java.lang.String |
toString() |
public static PointI from(SC2APIProtocol.Common.PointI sc2ApiPointI)
public static PointI of(int x, int y)
public SC2APIProtocol.Common.PointI toSc2Api()
toSc2Api
in interface Sc2ApiSerializable<SC2APIProtocol.Common.PointI>
public int getX()
public int getY()
public PointI div(int divBy)
public PointI mul(int mulBy)
public int dot(PointI b)
public double distance(PointI 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.