|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorbotix.robot.util.Vector2D
public class Vector2D
Class to contain 2D vector coordinates.
| Field Summary | |
|---|---|
double |
x
x coordinate. |
double |
y
y coordinate |
| Constructor Summary | |
|---|---|
Vector2D(double x,
double y)
Constructor for a 2D vector. |
|
| Method Summary | |
|---|---|
double |
magnitude()
Magnitude for the vector. |
static double |
magnitude(double x,
double y)
Convenience method to calculate the magnitude of two values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
| Constructor Detail |
|---|
public Vector2D(double x,
double y)
x - Coordinate.y - Coordinate.| Method Detail |
|---|
public static double magnitude(double x,
double y)
x - Coordinate.y - Coordinate
public double magnitude()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||