jsci.physics
Class GravityField

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

public class GravityField
extends 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
equals, 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.



jHepWork 3.1 ©