JSci.physics
Class ConstantForce3D

java.lang.Object
  extended byJSci.physics.Force
      extended byJSci.physics.Force3D
          extended byJSci.physics.ConstantForce3D
All Implemented Interfaces:
java.io.Serializable

public class ConstantForce3D
extends Force3D

The ConstantForce3D class provides an object for encapsulating constant forces in 3D.

See Also:
Serialized Form

Field Summary
protected  double Fx
           
protected  double Fy
           
protected  double Fz
           
 
Constructor Summary
ConstantForce3D(double fx, double fy, double fz)
          Constructs a force.
 
Method Summary
 Force3D add(ConstantForce3D F)
          Returns the addition of this force and another.
 double getXComponent(double t)
           
 double getYComponent(double t)
           
 double getZComponent(double t)
           
 Force3D subtract(ConstantForce3D F)
          Returns the subtraction of this force by another.
 
Methods inherited from class JSci.physics.Force3D
getVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Fx

protected final double Fx

Fy

protected final double Fy

Fz

protected final double Fz
Constructor Detail

ConstantForce3D

public ConstantForce3D(double fx,
                       double fy,
                       double fz)
Constructs a force.

Method Detail

add

public Force3D add(ConstantForce3D F)
Returns the addition of this force and another.


subtract

public Force3D subtract(ConstantForce3D F)
Returns the subtraction of this force by another.


getXComponent

public double getXComponent(double t)
Specified by:
getXComponent in class Force3D

getYComponent

public double getYComponent(double t)
Specified by:
getYComponent in class Force3D

getZComponent

public double getZComponent(double t)
Specified by:
getZComponent in class Force3D