프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Camera | System.ComponentModel | ||
IOrthoCamera | CSharpGL.mat4 | ||
IPerspectiveCamera | CSharpGL.mat4 |
메소드 | 설명 | |
---|---|---|
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}
|
메소드 | 설명 | |
---|---|---|
Camera ( ) : System.ComponentModel | ||
IOrthoCamera ( ) : CSharpGL.mat4 | ||
IPerspectiveCamera ( ) : CSharpGL.mat4 |
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. |
리턴 | System.ComponentModel |