jsci.physics
Class ConstantForce2D
java.lang.Object
jsci.physics.Force
jsci.physics.Force2D
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. |
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
jHepWork 3.1 ©