simulator
Class BarState

java.lang.Object
  |
  +--simulator.BarState

class BarState
extends java.lang.Object

Contains information about the position of a bar


Field Summary
 Position massCenter
          The x,y position of the center of mass of bar
 double xAngle
          The orientation angle from x axle
 
Constructor Summary
BarState(BarState b)
          Initialize position of bar
BarState(Position p, double a)
          Initialize position of bar
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

massCenter

public Position massCenter
The x,y position of the center of mass of bar

xAngle

public double xAngle
The orientation angle from x axle
Constructor Detail

BarState

public BarState(Position p,
                double a)
Initialize position of bar
Parameters:
p - the x,y position of mass center
a - the rotation angle from x axle

BarState

public BarState(BarState b)
Initialize position of bar
Parameters:
b - the BarState where copy information