nl.kun.Engine3D
Class TPendulum
java.lang.Object
|
+--nl.kun.Engine3D.TVector3D
|
+--nl.kun.Engine3D.TCoordSys3D
|
+--nl.kun.Engine3D.TEntity3D
|
+--nl.kun.Engine3D.TEntityList3D
|
+--nl.kun.Engine3D.TPhysObject
|
+--nl.kun.Engine3D.TPendulum
- public class TPendulum
- extends TPhysObject
A pendulum object. Uses a LWImported object (box.txt) to create a bar shaped pendulum for use in physical simulations.
Constructor Summary |
TPendulum(double _x,
double _y,
double _z,
double _Mass,
double _Width,
double _Height,
double _Depth,
java.awt.Color _color)
Constructor |
TPendulum(TVector3D _Posvec,
double _Mass,
double _Width,
double _Height,
double _Depth,
java.awt.Color _color)
Constructor |
Method Summary |
void |
setValues(double _x,
double _y,
double _z,
double _Mass,
double _Width,
double _Height,
double _Depth,
java.awt.Color _color)
(Re)set the variables for the pendulum |
Methods inherited from class nl.kun.Engine3D.TEntityList3D |
Append,
Clear,
Depth,
Draw,
InheritGlobalCords,
Insert,
Remove,
Remove,
Rotate,
Sort,
Translate,
Translate |
Methods inherited from class nl.kun.Engine3D.TVector3D |
Angle,
Double2String,
Double2String,
Modulus,
Modulus,
Negate,
Negate,
Normalize,
Normalize,
NulVec,
StdXaxis,
StdYaxis,
StdZaxis,
String2Double,
VAdd,
VCrossProduct,
VCrossProduct,
VDotProduct,
Vector3D,
VPerpendicular,
VPerpendicular,
VScalarProduct,
VScalarProduct,
VScalarProduct,
VSubstract,
VSubstract |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
TPendulum
public TPendulum(double _x,
double _y,
double _z,
double _Mass,
double _Width,
double _Height,
double _Depth,
java.awt.Color _color)
- Constructor
- Parameters:
_x
- x position of the pendulum_y
- y position of the pendulum_z
- z position of the pendulum_Mass
- mass of the pendulum_Width
- Width of the pendulum_Height
- Height of the pendulum_Depth
- Depth of the pendulum_color
- Color of the pendulum_url
- The URL of the path where box.txt is present ... Can only be determined by a Applet object by calling
the getCodeBase() subroutine.
TPendulum
public TPendulum(TVector3D _Posvec,
double _Mass,
double _Width,
double _Height,
double _Depth,
java.awt.Color _color)
- Constructor
- Parameters:
_Posvec
- Position vector of the pendulum_Mass
- mass of the pendulum_Width
- Width of the pendulum_Height
- Height of the pendulum_Depth
- Depth of the pendulum_color
- Color of the pendulum_url
- The URL of the path where box.txt is present ... Can only be determined by a Applet object by calling
the getCodeBase() subroutine.
setValues
public void setValues(double _x,
double _y,
double _z,
double _Mass,
double _Width,
double _Height,
double _Depth,
java.awt.Color _color)
- (Re)set the variables for the pendulum
- Parameters:
_x
- x position of the pendulum_y
- y position of the pendulum_z
- z position of the pendulum_Mass
- mass of the pendulum_Width
- Width of the pendulum_Height
- Height of the pendulum_Depth
- Depth of the pendulum_color
- Color of the pendulum