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