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