|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--roboplayer.geometry.Polar
Helper class for operations on polar coordinates.
Field Summary | |
double |
dir
|
double |
dist
|
Constructor Summary | |
Polar()
Empty constructor |
|
Polar(double r,
double a)
Constructor. |
|
Polar(Polar p)
Constructor. |
Method Summary | |
void |
addOld(Polar p)
Add given polar to this one |
double |
getDistance(Polar pos)
This function calculates distance between this and given second polar |
Vector2d |
getPosition()
This function calculates position from polar coordinates |
java.lang.String |
toString()
Convert to string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double dist
public double dir
Constructor Detail |
public Polar()
public Polar(Polar p)
p
- Polar to copypublic Polar(double r, double a)
r
- distancea
- angleMethod Detail |
public double getDistance(Polar pos)
pos
- second object position
public void addOld(Polar p)
p
- polar to add
?????public Vector2d getPosition()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |