JSci.physics
Class ConstantForce3D
java.lang.Object
JSci.physics.Force
JSci.physics.Force3D
JSci.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. |
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
Fz
protected final double Fz
ConstantForce3D
public ConstantForce3D(double fx,
double fy,
double fz)
- Constructs a force.
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