JSci.physics
Class ConstantForce2D
java.lang.Object
  
JSci.physics.Force
      
JSci.physics.Force2D
          
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. | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Fx
protected final double Fx
Fy
protected final double Fy
ConstantForce2D
public ConstantForce2D(double fx,
                       double fy)
- Constructs a force.
 
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