public class Point2D
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
EPSILON |
| Constructor and Description |
|---|
Point2D(float x,
float y) |
| Modifier and Type | Method and Description |
|---|---|
float |
calculateAngle(Point2D other)
Returns the angle in degrees from this point towards the specified other
point.
|
float |
calculateDistance(Point2D other)
Returns the distance between this point and the specified other point.
|
boolean |
equals(java.lang.Object o) |
float |
getX() |
float |
getY() |
int |
hashCode() |
void |
set(float x,
float y) |
void |
setX(float x) |
void |
setY(float y) |
java.lang.String |
toString() |
public static final float EPSILON
public void set(float x,
float y)
public void setX(float x)
public float getX()
public void setY(float y)
public float getY()
public float calculateDistance(Point2D other)
public float calculateAngle(Point2D other)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object