|
|||||||||
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 renderingMethod Detail |
---|
public void setTime(double t)
t
- double the timepublic void draw(DrawingPanel panel, java.awt.Graphics g)
draw
in interface Drawable
panel
- DrawingPanelg
- Graphics
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |