org.jscience.physics.kinematics
Class Gravity

java.lang.Object
  extended by org.jscience.physics.kinematics.Interaction
      extended by org.jscience.physics.kinematics.Gravity

public class Gravity
extends Interaction

The Gravity class provides an object for encapsulating Gravity forces.


Constructor Summary
Gravity(AbstractClassicalParticle p1, AbstractClassicalParticle p2)
          Constructs a Gravity.
 
Method Summary
 Force createForce()
          DOCUMENT ME!
 double potentialEnergy()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.kinematics.Interaction
getParticle1, getParticle2, setParticle1, setParticle2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gravity

public Gravity(AbstractClassicalParticle p1,
               AbstractClassicalParticle p2)
Constructs a Gravity.

Parameters:
p1 - DOCUMENT ME!
p2 - DOCUMENT ME!
Method Detail

potentialEnergy

public double potentialEnergy()
DOCUMENT ME!

Specified by:
potentialEnergy in class Interaction
Returns:
DOCUMENT ME!

createForce

public Force createForce()
DOCUMENT ME!

Specified by:
createForce in class Interaction
Returns:
DOCUMENT ME!