C# Class Fusion.Engine.Graphics.Camera

Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Camera ( ) : System

GetCameraMatrix ( StereoEye stereoEye ) : System.Matrix

Gets camera matrix for given stereo eye.

GetCameraPosition ( StereoEye stereoEye ) : System.Vector3

Returns camera position as Vector3

GetCameraPosition4 ( StereoEye stereoEye ) : System.Vector4

Returns camera position as Vector4

GetProjectionMatrix ( StereoEye stereoEye ) : System.Matrix

Gets projection matrix for given stereo eye.

GetViewMatrix ( StereoEye stereoEye ) : System.Matrix

Gets view matrix for given stereo eye.

SetupCamera ( System.Matrix viewMatrix, float height, float width, float near, float far, float convergence, float separation ) : void

Sets camera up.

SetupCameraCubeFace ( System.Vector3 origin, CubeFace cubeFace, float near, float far ) : void

SetupCameraFov ( System.Matrix view, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void

Setups camera.

SetupCameraFov ( System.Vector3 origin, System.Vector3 target, System.Vector3 up, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void

Setups camera.

Method Details

Camera() public méthode

public Camera ( ) : System
Résultat System

GetCameraMatrix() public méthode

Gets camera matrix for given stereo eye.
public GetCameraMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
Résultat System.Matrix

GetCameraPosition() public méthode

Returns camera position as Vector3
public GetCameraPosition ( StereoEye stereoEye ) : System.Vector3
stereoEye StereoEye
Résultat System.Vector3

GetCameraPosition4() public méthode

Returns camera position as Vector4
public GetCameraPosition4 ( StereoEye stereoEye ) : System.Vector4
stereoEye StereoEye
Résultat System.Vector4

GetProjectionMatrix() public méthode

Gets projection matrix for given stereo eye.
public GetProjectionMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
Résultat System.Matrix

GetViewMatrix() public méthode

Gets view matrix for given stereo eye.
public GetViewMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
Résultat System.Matrix

SetupCamera() public méthode

Sets camera up.
public SetupCamera ( System.Matrix viewMatrix, float height, float width, float near, float far, float convergence, float separation ) : void
viewMatrix System.Matrix View matrix. The left-eye and right-eye view matricies will be constructed from this matrix.
height float Frustum with at near plane.
width float Frustum height ar near place.
near float Camera near clipping plane distance.
far float Camera far clipping plane distance.
convergence float
separation float Stereo separation or distance between eyes.
Résultat void

SetupCameraCubeFace() public méthode

public SetupCameraCubeFace ( System.Vector3 origin, CubeFace cubeFace, float near, float far ) : void
origin System.Vector3
cubeFace CubeFace
near float
far float
Résultat void

SetupCameraFov() public méthode

Setups camera.
public SetupCameraFov ( System.Matrix view, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void
view System.Matrix
fov float
near float
far float
convergence float
separation float
aspectRatio float
Résultat void

SetupCameraFov() public méthode

Setups camera.
public SetupCameraFov ( System.Vector3 origin, System.Vector3 target, System.Vector3 up, float fov, float near, float far, float convergence, float separation, float aspectRatio ) : void
origin System.Vector3 Camera's origin
target System.Vector3 Vector directed toward the target
up System.Vector3 Camera's up vector
fov float Camera FOV in radians
near float Near Z-clipping plane distance
far float Fat Z-clipping place distance
convergence float Stereo convergence distance
separation float Stereo camera separation
aspectRatio float Viewport width divided by viewport height
Résultat void