nl.kun.Engine3D
Class TCamera3D
java.lang.Object
|
+--nl.kun.Engine3D.TVector3D
|
+--nl.kun.Engine3D.TCoordSys3D
|
+--nl.kun.Engine3D.TEntity3D
|
+--nl.kun.Engine3D.TCamera3D
- public class TCamera3D
- extends TEntity3D
A camera object, enherited from TEntity3D
so it has it's own coordinate systems.
The x-y plane of the camera is the projection plane, the z axis is the direction
of view. 3D objects can draw themselves onto the camera just by projecting themselves
on the x-y plane of the camera.
Constructor Summary |
TCamera3D()
An empty constructor. |
TCamera3D(double _x,
double _y,
double _z,
double _dirx,
double _diry,
double _dirz,
double _upx,
double _upy,
double _upz)
The standard constructor for this object. |
TCamera3D(TCamera3D _Cam)
Copy constructor. |
TCamera3D(TVector3D _p,
TVector3D _dir,
TVector3D _up)
Constructor |
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 |
TCamera3D
public TCamera3D(double _x,
double _y,
double _z,
double _dirx,
double _diry,
double _dirz,
double _upx,
double _upy,
double _upz)
- The standard constructor for this object. Input are the position of
the camera, it's viewing direction and a vector that denotes
the up direction.
- Parameters:
_x
- The x position of the camera._y
- The y position of the camera._z
- The z position of the camera._dirx
- The x-component of the direction vector_diry
- The y-component of the direction vector_dirz
- The z-component of the direction vector_upx
- The x-component of the up vector_upy
- The y-component of the up vector_upz
- The z-component of the up vector
TCamera3D
public TCamera3D(TVector3D _p,
TVector3D _dir,
TVector3D _up)
- Constructor
- Parameters:
_p
- Position of the camera_dir
- Direction of the camera_up
- Up direction of the camera.- See Also:
TCamera3D(double, double, double, double, double, double, double, double, double)
TCamera3D
public TCamera3D(TCamera3D _Cam)
- Copy constructor.
- Parameters:
_Cam
- the TCamera3D object that should be copied into this object
TCamera3D
public TCamera3D()
- An empty constructor. Creates a camera with coordinate system ( (0,0,0); (1,0,0); (0,1,0); (0,0,1) )