|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.Vector2D
public class Vector2D
a 2 dimensional vector
Field Summary | |
---|---|
double |
x
|
double |
y
|
Constructor Summary | |
---|---|
Vector2D(double x,
double y)
constructor |
|
Vector2D(Point2D start,
Point2D end)
constructor, creates a vector as the difference between a start and end point |
|
Vector2D(Vector2D v)
|
Method Summary | |
---|---|
double |
magnitude()
|
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
- y
- public Vector2D(Vector2D v)
public Vector2D(Point2D start, Point2D end)
start
- [in] start pointend
- [in] end pointMethod Detail |
---|
public double magnitude()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |