|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.sip.ch18.ContractedRing
public class ContractedRing
ContractedRing models the Lorentz-Fitzgerald contraction of a ring moving in the x direction.
| Constructor Summary | |
|---|---|
ContractedRing(double x0,
double y0,
double vx,
int numberOfPoints)
ContractedRing models the shape of a ring at relativistic speeds. |
|
| Method Summary | |
|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws the contracted circle. |
void |
setTime(double t)
Sets the time and translates the shape to its position at the given time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContractedRing(double x0,
double y0,
double vx,
int numberOfPoints)
x0 - double initial center x coordinatey0 - double initial center y coordinatevx - double x velocitynumPts - int number of points for rendering| Method Detail |
|---|
public void setTime(double t)
t - double the time
public void draw(DrawingPanel panel,
java.awt.Graphics g)
draw in interface Drawablepanel - DrawingPanelg - Graphics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||