JSci.physics
Class GravityField

java.lang.Object
  extended by JSci.physics.GravityField

public class GravityField
extends java.lang.Object


Constructor Summary
GravityField(ClassicalParticle3D p)
          Constructs the gravitational field of a particle.
 
Method Summary
 Force3D createForce(ClassicalParticle3D p)
          Creates the force acting on a particle in this field.
 double energy(ClassicalParticle3D p)
          Returns the potential energy of a particle in this field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GravityField

public GravityField(ClassicalParticle3D p)
Constructs the gravitational field of a particle.

Method Detail

energy

public double energy(ClassicalParticle3D p)
Returns the potential energy of a particle in this field.


createForce

public Force3D createForce(ClassicalParticle3D p)
Creates the force acting on a particle in this field.