|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.sip.ch18.ContractedRing
org.opensourcephysics.sip.ch18.ObservedRing
public class ObservedRing
ObservedRing models the appearance of a ring at relativistic speeds.
Constructor Summary | |
---|---|
ObservedRing(double x0,
double y0,
double vx,
int numPts)
Constructs an ObservedRing at the given position. |
Method Summary | |
---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws the ring as seen by a single observer at the origin. |
Methods inherited from class org.opensourcephysics.sip.ch18.ContractedRing |
---|
setTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObservedRing(double x0, double y0, double vx, int numPts)
x0
- doubley0
- doublevx
- doublenumPts
- intMethod Detail |
---|
public void draw(DrawingPanel panel, java.awt.Graphics g)
draw
in interface Drawable
draw
in class ContractedRing
panel
- DrawingPanelg
- Graphics
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |