|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display.Circle
org.opensourcephysics.sip.ch02.BouncingBall
public class BouncingBall
BouncingBall models a falling ball as it bounces off of a floor or a wall.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.display.Circle |
|---|
color, pixRadius |
| Constructor Summary | |
|---|---|
BouncingBall(double x,
double vx,
double y,
double vy)
Constructs a BouncingBall with the given initial conditions. |
|
| Method Summary | |
|---|---|
void |
step(double dt)
Steps (advances) the time. |
| Methods inherited from class org.opensourcephysics.display.Circle |
|---|
draw, getLoader, getX, getY, setX, setXY, setY, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BouncingBall(double x,
double vx,
double y,
double vy)
x - doublevx - doubley - doublevy - double| Method Detail |
|---|
public void step(double dt)
dt - double
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||