C# Class CSharpGL.Camera

Exibir arquivo Open project: bitzhuwei/CSharpGL Class Usage Examples

Private Properties

Property Type Description
Camera System.ComponentModel
IOrthoCamera CSharpGL.mat4
IPerspectiveCamera CSharpGL.mat4

Public Methods

Method Description
Camera ( vec3 position, vec3 target, vec3 up, CameraType cameraType, double width, double height ) : System.ComponentModel

默认目标为vec3(0, 0, -1)

默认位置为vec3(0, 0, 0)

默认上方为vec3(0, 1, 0)

Camera.

GetViewMatrix ( ) : CSharpGL.mat4

ToString ( ) : string

Pos:{0}, Target:{1}, Up:{2}

Private Methods

Method Description
Camera ( ) : System.ComponentModel
IOrthoCamera ( ) : CSharpGL.mat4
IPerspectiveCamera ( ) : CSharpGL.mat4

Method Details

Camera() public method

默认目标为vec3(0, 0, -1) 默认位置为vec3(0, 0, 0) 默认上方为vec3(0, 1, 0) Camera.
public Camera ( vec3 position, vec3 target, vec3 up, CameraType cameraType, double width, double height ) : System.ComponentModel
position vec3 position in world space
target vec3 target in world space.
up vec3 up in world space.
cameraType CameraType perspective or ortho?
width double canvas' width.
height double canvas' height.
return System.ComponentModel

GetViewMatrix() public method

public GetViewMatrix ( ) : CSharpGL.mat4
return CSharpGL.mat4

ToString() public method

Pos:{0}, Target:{1}, Up:{2}
public ToString ( ) : string
return string