|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nl.bluering.ppracing.Vector
Dataclass for saving the car-movements
Constructor Summary | |
Vector(int x,
int y)
Constructs a new Vector |
Method Summary | |
int |
getx()
|
int |
gety()
|
double |
length()
|
int |
setx(int x)
|
int |
sety(int y)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Vector(int x, int y)
x
- Horizontal speedy
- Vertical speedMethod Detail |
public double length()
public int getx()
public int gety()
public int setx(int x)
x
- Horizontal speed to setpublic int sety(int y)
x
- Vertical speed to setpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |