|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--roboplayer.geometry.Polar | +--roboplayer.core.memory.ObjectInfo
Represents object in Visual information.
Field Summary | |
double |
faceDir
Face direction (for players) |
java.lang.String |
name
Name of this object |
double |
probability
|
Fields inherited from class roboplayer.geometry.Polar |
dir, dist |
Constructor Summary | |
ObjectInfo(java.lang.String type)
Constructor |
Method Summary | |
Polar |
getPolarChange()
Get position change in polar coords |
Vector2d |
getSpeed()
Get speed vector |
Vector2d |
getVectorPos()
Get position vector coords |
void |
polar2Vector(double dirOffset,
Vector2d orgin)
This function updates Vector coordinates in all ObjectInfo object. |
void |
setPolarChange(Polar p)
Set position change in polar coords |
void |
setSpeed(Vector2d newSpeed)
Set speed vector |
void |
setVectorPos(Vector2d pos)
Get position vector coords |
java.lang.String |
toString()
debug info |
Methods inherited from class roboplayer.geometry.Polar |
addOld, getDistance, getPosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String name
public double faceDir
public double probability
Constructor Detail |
public ObjectInfo(java.lang.String type)
Method Detail |
public Polar getPolarChange()
public void setPolarChange(Polar p)
public Vector2d getVectorPos()
public void setVectorPos(Vector2d pos)
public Vector2d getSpeed()
public void setSpeed(Vector2d newSpeed)
public void polar2Vector(double dirOffset, Vector2d orgin)
public java.lang.String toString()
toString
in class Polar
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |