|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSci.physics.Force2D
public class Force2D
The Force2D class provides an object for encapsulating forces and torques in 2D.
Field Summary | |
---|---|
protected double |
Fx
|
protected double |
Fy
|
protected double |
T
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double Fx
protected double Fy
protected double T
Constructor Detail |
---|
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)
Method Detail |
---|
public Force2D add(Force2D F)
public Force2D subtract(Force2D F)
public double getXComponent()
public double getYComponent()
public double getTorque()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |