jsci.physics
Class GravityField
- java.lang.Object
-
- jsci.physics.GravityField
-
public class GravityField extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description GravityField(ClassicalParticle3D p)Constructs the gravitational field of a particle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Force3DcreateForce(ClassicalParticle3D p)Creates the force acting on a particle in this field.doubleenergy(ClassicalParticle3D p)Returns the potential energy of a particle in this field.
-
-
-
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.
-
-
DMelt 3.0 © DataMelt by jWork.ORG