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.


Fields inherited from class nl.kun.Engine3D.TPhysObject
GLOBAL, LOCAL, Mass, MAXPICKPOINTS, v
 
Fields inherited from class nl.kun.Engine3D.TEntityList3D
depth, index, MaxBuf, MAXOBJECTS, ObjectList, size
 
Fields inherited from class nl.kun.Engine3D.TEntity3D
color, GlobalCords, ParentGlobalCords, Vissible
 
Fields inherited from class nl.kun.Engine3D.TCoordSys3D
Xaxis, Yaxis, Zaxis
 
Fields inherited from class nl.kun.Engine3D.TVector3D
DBSCIENTIFIC, DBSTANDARD, x, y, z
 
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.TPhysObject
getPickPoint, init, rotAroundFixedAxis, setFixedAxis, setPickPoint
 
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.TEntity3D
Vector3D, Vector3D
 
Methods inherited from class nl.kun.Engine3D.TCoordSys3D
CoordSys3D, CoordSys3D, CoordSys3D, Global2Local, Global2Local, Global2Local, Local2Global, Local2Global, Local2Global, toString
 
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
 

Constructor Detail

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.
Method Detail

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