|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.realgravity.Universe
public class Universe
The Class Universe.
Field Summary | |
---|---|
static double |
G
The g. |
Constructor Summary | |
---|---|
Universe()
|
Method Summary | |
---|---|
void |
add(MassEntity p)
Adds the. |
void |
cullFarAway(double viewableUniverseWidth)
Cull far away. |
int |
getEntityCount()
Gets the entity count. |
static double |
getForce(MassEntity e,
MassEntity x)
Gets the force. |
void |
render(java.awt.Graphics2D g2d,
int screenWidth,
int screenHeight,
double metersPerPixel)
Render. |
void |
updateMotion(double elapsedTime)
Update motion. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static double G
Constructor Detail |
---|
public Universe()
Method Detail |
---|
public static double getForce(MassEntity e, MassEntity x)
e
- the ex
- the x
public void add(MassEntity p)
p
- the ppublic void cullFarAway(double viewableUniverseWidth)
viewableUniverseWidth
- the viewable universe widthpublic int getEntityCount()
public void render(java.awt.Graphics2D g2d, int screenWidth, int screenHeight, double metersPerPixel)
g2d
- the g2dscreenWidth
- the screen widthscreenHeight
- the screen heightmetersPerPixel
- the meters per pixelpublic void updateMotion(double elapsedTime)
elapsedTime
- the elapsed time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |