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:
Serializable

public class ConstantForce2D
extends Force2D

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

See Also:
Serialized Form

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


jHepWork 3.1 ©