Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ScriptTest2.Camera Class Reference

Camera component. More...

Public Member Functions

 Camera ()
 Initializes a new instance of the Camera class. More...
 
 Camera (Vector3 position, Vector3 target, float fov, float width, float height, float aspect, float nearClipPlane, float farClipPlane)
 Initializes a new instance of the Camera class. More...
 
 Camera (Vector3 position, float yaw, float pitch, float roll, float fov, float width, float height, float aspect, float nearClipPlane, float farClipPlane)
 Initializes a new instance of the Camera class. More...
 
override string ToString ()
 

Static Public Member Functions

static Matrix YawPitchRoll (Vector3 position, Matrix matrix, float yaw, float pitch, float roll)
 

Properties

float Width [get, set]
 Gets the width of the camera. More...
 
float Height [get, set]
 Gets the height of the camera. More...
 
float NearClipPlane [get, set]
 Gets or sets the near clip plane. More...
 
float FarClipPlane [get, set]
 Gets or sets the far clip plane. More...
 
float FieldOfView [get, set]
 Gets or sets the vertical field of view. More...
 
float Aspect [get, set]
 Gets or sets the aspect. More...
 
float OrthographicSize [get, set]
 Gets or sets the camera half vertical size in orthographic mode. More...
 
bool IsOrthographic [get, set]
 Gets or sets a value indicating whether this instance is orthographic. More...
 
CameraMode Mode [get, set]
 Gets or sets the mode of this camera. More...
 
Matrix WorldToCamera [get, set]
 Gets or sets the world to camera matrix. More...
 
Matrix Projection [get, set]
 Gets or sets the projection matrix. More...
 
Vector3 Position [get, set]
 Gets or sets the position. More...
 
Vector3 Target [get, set]
 Gets or sets the target. More...
 

Detailed Description

Camera component.

Definition at line 21 of file Camera.cs.

Constructor & Destructor Documentation

ScriptTest2.Camera.Camera ( )

Initializes a new instance of the Camera class.

Definition at line 38 of file Camera.cs.

ScriptTest2.Camera.Camera ( Vector3  position,
Vector3  target,
float  fov,
float  width,
float  height,
float  aspect,
float  nearClipPlane,
float  farClipPlane 
)

Initializes a new instance of the Camera class.

Parameters
positionThe position.
targetThe target.
fovThe fov.
aspectThe aspect.
nearClipPlaneThe near clip plane.
farClipPlaneThe far clip plane.

Definition at line 51 of file Camera.cs.

ScriptTest2.Camera.Camera ( Vector3  position,
float  yaw,
float  pitch,
float  roll,
float  fov,
float  width,
float  height,
float  aspect,
float  nearClipPlane,
float  farClipPlane 
)

Initializes a new instance of the Camera class.

Parameters
positionThe position.
yawThe yaw.
pitchThe pitch.
rollThe roll.
fovThe fov.
aspectThe aspect.
nearClipPlaneThe near clip plane.
farClipPlaneThe far clip plane.

Definition at line 78 of file Camera.cs.

Member Function Documentation

override string ScriptTest2.Camera.ToString ( )

Definition at line 321 of file Camera.cs.

static Matrix ScriptTest2.Camera.YawPitchRoll ( Vector3  position,
Matrix  matrix,
float  yaw,
float  pitch,
float  roll 
)
static

Definition at line 326 of file Camera.cs.

Property Documentation

float ScriptTest2.Camera.Aspect
getset

Gets or sets the aspect.

The aspect.

Definition at line 171 of file Camera.cs.

float ScriptTest2.Camera.FarClipPlane
getset

Gets or sets the far clip plane.

The far clip plane.

Definition at line 130 of file Camera.cs.

float ScriptTest2.Camera.FieldOfView
getset

Gets or sets the vertical field of view.

The field of view.

The horizontal field of view is determined

Definition at line 152 of file Camera.cs.

float ScriptTest2.Camera.Height
getset

Gets the height of the camera.

Definition at line 102 of file Camera.cs.

Referenced by ScriptTest2.CameraScript.Execute().

bool ScriptTest2.Camera.IsOrthographic
getset

Gets or sets a value indicating whether this instance is orthographic.

true if this instance is orthographic; otherwise, false.

Definition at line 212 of file Camera.cs.

CameraMode ScriptTest2.Camera.Mode
getset

Gets or sets the mode of this camera.

The camera mode.

Definition at line 231 of file Camera.cs.

Referenced by ScriptTest2.CameraScript.Execute().

float ScriptTest2.Camera.NearClipPlane
getset

Gets or sets the near clip plane.

The near clip plane.

Definition at line 111 of file Camera.cs.

float ScriptTest2.Camera.OrthographicSize
getset

Gets or sets the camera half vertical size in orthographic mode.

The camera half vertical size .

This value is valid only when IsOrthographic is set to true.

Definition at line 193 of file Camera.cs.

Vector3 ScriptTest2.Camera.Position
getset

Gets or sets the position.

The position.

Definition at line 288 of file Camera.cs.

Referenced by ScriptTest2.CameraScript.Execute().

Matrix ScriptTest2.Camera.Projection
getset

Gets or sets the projection matrix.

The projection matrix.

Definition at line 270 of file Camera.cs.

Vector3 ScriptTest2.Camera.Target
getset

Gets or sets the target.

The target.

>Only available for camera mode CameraMode.Target

Definition at line 309 of file Camera.cs.

float ScriptTest2.Camera.Width
getset

Gets the width of the camera.

Definition at line 97 of file Camera.cs.

Referenced by ScriptTest2.CameraScript.Execute().

Matrix ScriptTest2.Camera.WorldToCamera
getset

Gets or sets the world to camera matrix.

The world to camera matrix.

Definition at line 249 of file Camera.cs.

Referenced by ScriptTest2.CameraScript.Execute().


The documentation for this class was generated from the following file: