|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--simulator.BoxState
Contains information about the position of a box
Field Summary | |
boolean |
attachedBar
True if the box has the same angle of the bar |
boolean |
collisionBar
True if the box is collided to the bar |
double |
contactPoint
Contain the relative position from bar massCenter of the point that box corner is in contact with the bar. |
int |
ID
Identification number for box |
boolean |
lock
If true means that the box is stopped, so there's static attrition |
Position |
massCenter
The x,y position of the center of mass of box |
double |
xAngle
The orientation angle from x axle |
Constructor Summary | |
BoxState(BoxState box)
Initialize box position using another box |
|
BoxState(Position p,
double a,
int i)
Initialize position of box |
Methods inherited from class java.lang.Object |
|
Field Detail |
public Position massCenter
public double xAngle
public boolean collisionBar
public boolean attachedBar
public double contactPoint
attachedBar
is true.
NaN means that there's no contactpublic boolean lock
public int ID
Constructor Detail |
public BoxState(Position p, double a, int i)
p
- the x,y position of mass centera
- the rotation angle from x axlei
- an identifier for the boxpublic BoxState(BoxState box)
box
- the box to copy
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |