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
-
-
Constructor Summary
Constructors Constructor and Description ConstantForce3D(double fx, double fy, double fz)Constructs a force.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Force3Dadd(ConstantForce3D F)Returns the addition of this force and another.doublegetXComponent(double t)doublegetYComponent(double t)doublegetZComponent(double t)Force3Dsubtract(ConstantForce3D F)Returns the subtraction of this force by another.
-
-
-
Constructor Detail
-
ConstantForce3D
public ConstantForce3D(double fx, double fy, double fz)Constructs a force.
-
-
Method Detail
-
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:
getXComponentin classForce3D
-
getYComponent
public double getYComponent(double t)
- Specified by:
getYComponentin classForce3D
-
getZComponent
public double getZComponent(double t)
- Specified by:
getZComponentin classForce3D
-
-
DMelt 3.0 © DataMelt by jWork.ORG