public class Force2D
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected double |
Fx |
protected double |
Fy |
protected double |
T |
Constructor and Description |
---|
Force2D(double w)
Constructs a torque.
|
Force2D(double fx,
double fy)
Constructs a force that acts on the centre of mass.
|
Force2D(double fx,
double fy,
double w)
Constructs a force and a torque.
|
Force2D(double fx,
double fy,
double x,
double y)
Constructs a force acting at a point.
|
Modifier and Type | Method and Description |
---|---|
Force2D |
add(Force2D F)
Returns the addition of this force and another.
|
double |
getTorque() |
double |
getXComponent() |
double |
getYComponent() |
Force2D |
subtract(Force2D F)
Returns the subtraction of this force by another.
|
public Force2D(double fx, double fy)
public Force2D(double w)
public Force2D(double fx, double fy, double w)
public Force2D(double fx, double fy, double x, double y)