|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--nl.kun.Engine3D.TVector3D
|
+--nl.kun.Engine3D.TCoordSys3D
This class defines a coordinate system.
It uses the x, y and z value of it's parent TVector3D as it's origin
has TVector3D's for it's x-axis, y-axis and Z-axis.
It also contains a lot of functions that can manipulate
coordinate systems.
| Field Summary | |
TVector3D |
Xaxis
The x-axis of the coordinate system |
TVector3D |
Yaxis
The y-axis of the coordinate system |
TVector3D |
Zaxis
The z-axis of the coordinate system |
| Fields inherited from class nl.kun.Engine3D.TVector3D |
DBSCIENTIFIC,
DBSTANDARD,
x,
y,
z |
| Constructor Summary | |
TCoordSys3D()
Empty constructor. |
|
TCoordSys3D(double _x,
double _y,
double _z,
double _xax,
double _xay,
double _xaz,
double _yax,
double _yay,
double _yaz,
double _zax,
double _zay,
double _zaz)
Constructor. |
|
TCoordSys3D(double _x,
double _y,
double _z,
TVector3D _Xaxis,
TVector3D _Yaxis,
TVector3D _Zaxis)
Constructor |
|
TCoordSys3D(TCoordSys3D _CoordSys3D)
Copy Constructor. |
|
TCoordSys3D(TVector3D _posVec,
TVector3D _Xaxis,
TVector3D _Yaxis,
TVector3D _Zaxis)
Constructor |
|
| Method Summary | |
TCoordSys3D |
CoordSys3D(double _x,
double _y,
double _z,
double _xax,
double _xay,
double _xaz,
double _yax,
double _yay,
double _yaz,
double _zax,
double _zay,
double _zaz)
Like the standard constructor of this coordinate system only the object already exists. |
TCoordSys3D |
CoordSys3D(TCoordSys3D _CoordSys3D)
Like a copy constructor, only the object already exists but it's member variables are overwritten |
TCoordSys3D |
CoordSys3D(TVector3D _posVec,
TVector3D _Xaxis,
TVector3D _Yaxis,
TVector3D _Zaxis)
Like a constructor, only the object already exists. |
TVector3D |
Global2Local(double _x,
double _y,
double _z)
Converts a vector from a local coordinate system to this coordinate system. |
TVector3D |
Global2Local(TVector3D _Global)
Converts a vector from a local coordinate system to this coordinate system. |
TVector3D |
Global2Local(TVector3D _Global,
TVector3D _Local)
Converts a vector from a local coordinate system to this coordinate system. |
TVector3D |
Local2Global(double _x,
double _y,
double _z)
Converts a vector from it's local coordinate system to a global coordinate system. |
TVector3D |
Local2Global(TVector3D _Local)
Converts a vector from it's local coordinate system to a global coordinate system. |
TVector3D |
Local2Global(TVector3D _Local,
TVector3D _Global)
Converts a vector from it's local coordinate system to a global coordinate system. |
void |
Rotate(TVector3D _PosVec,
TVector3D _DirVec,
double _Angle)
Rotates this coordinate system with respect to the line defined by a direction vector and a position vector, by an amount _Angle measured in radians. |
java.lang.String |
toString()
Used when a string version of this object is needed |
TVector3D |
Translate(double _dx,
double _dy,
double _dz)
Translates this coordinate system by a certain displacement |
TVector3D |
Translate(TVector3D _dr)
Translates this coordinate system by a certain displacement |
| 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,
Vector3D,
Vector3D,
VPerpendicular,
VPerpendicular,
VScalarProduct,
VScalarProduct,
VScalarProduct,
VSubstract,
VSubstract |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public TVector3D Xaxis
public TVector3D Yaxis
public TVector3D Zaxis
| Constructor Detail |
public TCoordSys3D(double _x,
double _y,
double _z,
double _xax,
double _xay,
double _xaz,
double _yax,
double _yay,
double _yaz,
double _zax,
double _zay,
double _zaz)
_x - the x-value of the origin vector_y - the y-value of the origin vector_z - the z-value of the origin vector_xax - the x-value of the x-axis vector_xay - the y-value of the x-axis vector_xaz - the z-value of the x-axis vector_yax - the x-value of the y-axis vector_yay - the y-value of the y-axis vector_yaz - the z-value of the y-axis vector_zax - the x-value of the z-axis vector_zay - the y-value of the z-axis vector_zaz - the z-value of the z-axis vector
public TCoordSys3D(TVector3D _posVec,
TVector3D _Xaxis,
TVector3D _Yaxis,
TVector3D _Zaxis)
_posVec - The origin vector_Xaxis - The x-axis vector_Yaxis - The y-axis vector_Zaxis - The z-axis vector
public TCoordSys3D(double _x,
double _y,
double _z,
TVector3D _Xaxis,
TVector3D _Yaxis,
TVector3D _Zaxis)
_x - the x-value of the origin vector_y - the y-value of the origin vector_z - the z-value of the origin vector_Xaxis - The x-axis vector_Yaxis - The y-axis vector_Zaxis - The z-axis vectorpublic TCoordSys3D()
public TCoordSys3D(TCoordSys3D _CoordSys3D)
_CoordSys3D - Object to be copied to this object.| Method Detail |
public TCoordSys3D CoordSys3D(TCoordSys3D _CoordSys3D)
_CoordSys3D - The object that is to be copied into this object
public TCoordSys3D CoordSys3D(TVector3D _posVec,
TVector3D _Xaxis,
TVector3D _Yaxis,
TVector3D _Zaxis)
_x - the x-value of the origin vector_y - the y-value of the origin vector_z - the z-value of the origin vector_Xaxis - The x-axis vector_Yaxis - The y-axis vector_Zaxis - The z-axis vector
public TCoordSys3D CoordSys3D(double _x,
double _y,
double _z,
double _xax,
double _xay,
double _xaz,
double _yax,
double _yay,
double _yaz,
double _zax,
double _zay,
double _zaz)
_x - the x-value of the origin vector_y - the y-value of the origin vector_z - the z-value of the origin vector_xax - the x-value of the x-axis vector_xay - the y-value of the x-axis vector_xaz - the z-value of the x-axis vector_yax - the x-value of the y-axis vector_yay - the y-value of the y-axis vector_yaz - the z-value of the y-axis vector_zax - the x-value of the z-axis vector_zay - the y-value of the z-axis vector_zaz - the z-value of the z-axis vectorpublic TVector3D Local2Global(TVector3D _Local)
_Local - The vector that should be converted
public TVector3D Local2Global(TVector3D _Local,
TVector3D _Global)
_Local - The vector that should be converted\_Global - The result.
public TVector3D Local2Global(double _x,
double _y,
double _z)
_xg - The x component of the vector to be globalised._yg - The y component of the vector to be globalised._zg - The z component of the vector to be globalised.public TVector3D Global2Local(TVector3D _Global)
_Global - The vector that should be converted
public TVector3D Global2Local(double _x,
double _y,
double _z)
_xl - x component of the vector to be converted._yl - y component of the vector to be converted._zl - z component of the vector to be converted.
public TVector3D Global2Local(TVector3D _Global,
TVector3D _Local)
_Global - the vector to be converted._Local - the result
public void Rotate(TVector3D _PosVec,
TVector3D _DirVec,
double _Angle)
_Angle measured in radians._PosVec - The position vector of the rotation line_DirVec - The direction vector of the rotation line_Angle - The angle over which to rotate (in radians)
public TVector3D Translate(double _dx,
double _dy,
double _dz)
_dx - Displacement in x direction_dy - Displacement in y direction_dz - Displacement in z directionpublic TVector3D Translate(TVector3D _dr)
_dr - Displacement vector.public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||