JSci.physics
Class ConstantForce2D

java.lang.Object
  extended by JSci.physics.Force
      extended by JSci.physics.Force2D
          extended by JSci.physics.ConstantForce2D
All Implemented Interfaces:
java.io.Serializable

public class ConstantForce2D
extends Force2D

The ConstantForce2D class provides an object for encapsulating constant forces in 2D.

See Also:
Serialized Form

Field Summary
protected  double Fx
           
protected  double Fy
           
 
Constructor Summary
ConstantForce2D(double fx, double fy)
          Constructs a force.
 
Method Summary
 Force2D add(ConstantForce2D F)
          Returns the addition of this force and another.
 double getXComponent(double t)
           
 double getYComponent(double t)
           
 Force2D subtract(ConstantForce2D F)
          Returns the subtraction of this force by another.
 
Methods inherited from class JSci.physics.Force2D
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
Constructor Detail

ConstantForce2D

public ConstantForce2D(double fx,
                       double fy)
Constructs a force.

Method Detail

add

public Force2D add(ConstantForce2D F)
Returns the addition of this force and another.


subtract

public Force2D subtract(ConstantForce2D F)
Returns the subtraction of this force by another.


getXComponent

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

getYComponent

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