C# Class CSharpGL.CameraHelper

Show file Open project: bitzhuwei/CSharpGL

Public Methods

Method Description
GetBack ( this camera ) : vec3

Get back vector in world space.

GetDown ( this camera ) : vec3

Gets standard down.

GetFront ( this camera ) : vec3

Get front vector in world space.

GetLeft ( this camera ) : vec3

Get left vector in world space.

GetRight ( this camera ) : vec3

Get right vector in world space.

GetUp ( this camera ) : vec3

Gets standard up.

MouseWheel ( this camera, int delta ) : void

对摄像机执行一次缩放操作

ZoomCamera ( this camera, IBoundingBox boundingBox ) : void

Zoom camera to fit in specified boundingBox.

Method Details

GetBack() public static method

Get back vector in world space.
public static GetBack ( this camera ) : vec3
camera this
return vec3

GetDown() public static method

Gets standard down.
public static GetDown ( this camera ) : vec3
camera this
return vec3

GetFront() public static method

Get front vector in world space.
public static GetFront ( this camera ) : vec3
camera this
return vec3

GetLeft() public static method

Get left vector in world space.
public static GetLeft ( this camera ) : vec3
camera this
return vec3

GetRight() public static method

Get right vector in world space.
public static GetRight ( this camera ) : vec3
camera this
return vec3

GetUp() public static method

Gets standard up.
public static GetUp ( this camera ) : vec3
camera this
return vec3

MouseWheel() public static method

对摄像机执行一次缩放操作
public static MouseWheel ( this camera, int delta ) : void
camera this
delta int
return void

ZoomCamera() public static method

Zoom camera to fit in specified boundingBox.
public static ZoomCamera ( this camera, IBoundingBox boundingBox ) : void
camera this
boundingBox IBoundingBox
return void