C# Класс Fusion.Engine.Graphics.Camera

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

Camera() публичный Метод

public Camera ( ) : System
Результат System

GetCameraMatrix() публичный Метод

Gets camera matrix for given stereo eye.
public GetCameraMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
Результат System.Matrix

GetCameraPosition() публичный Метод

Returns camera position as Vector3
public GetCameraPosition ( StereoEye stereoEye ) : System.Vector3
stereoEye StereoEye
Результат System.Vector3

GetCameraPosition4() публичный Метод

Returns camera position as Vector4
public GetCameraPosition4 ( StereoEye stereoEye ) : System.Vector4
stereoEye StereoEye
Результат System.Vector4

GetProjectionMatrix() публичный Метод

Gets projection matrix for given stereo eye.
public GetProjectionMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
Результат System.Matrix

GetViewMatrix() публичный Метод

Gets view matrix for given stereo eye.
public GetViewMatrix ( StereoEye stereoEye ) : System.Matrix
stereoEye StereoEye
Результат System.Matrix

SetupCamera() публичный Метод

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.
Результат void

SetupCameraCubeFace() публичный Метод

public SetupCameraCubeFace ( System.Vector3 origin, CubeFace cubeFace, float near, float far ) : void
origin System.Vector3
cubeFace CubeFace
near float
far float
Результат void

SetupCameraFov() публичный Метод

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
Результат void

SetupCameraFov() публичный Метод

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
Результат void