-
-
Constructor Summary
Constructors
Constructor and description |
Planet
(double rx, double ry, double vx, double vy, double mass, int id)
|
-
Methods Summary
-
Inherited Methods Summary
-
-
Field Detail
-
private static final double G
-
private static final double solarmass
-
Constructor Detail
-
public Planet(double rx, double ry, double vx, double vy, double mass, int id)
-
Method Detail
-
public void addForce(Planet b)
-
public double distanceTo(Planet p)
-
public void update(double dt)
Demonstrations of the Use of the Groovy Parallel Patterns Library generated 18-09-2017 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk