public class Vector2D
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
EPSILON |
| Constructor and Description |
|---|
Vector2D(float direction,
float magnitude) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
float |
getDirection() |
float |
getMagnitude() |
float |
getX() |
float |
getY() |
int |
hashCode() |
void |
setDirection(float direction) |
void |
setMagnitude(float magnitude) |
Point2D |
toPoint() |
java.lang.String |
toString() |
public static final float EPSILON
public void setDirection(float direction)
public float getDirection()
public void setMagnitude(float magnitude)
public float getMagnitude()
public float getX()
public float getY()
public Point2D toPoint()
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