C# Class StdPaint.Camera

Represents a view to render a scene from.
显示文件 Open project: TheBerkin/StdPaint Class Usage Examples

Public Methods

Method Description
Camera ( int fov, double near, double far ) : System

Create a new Camera object.

ProjectVector ( int width, int height, Vector3 vector, Matrix4 model = null ) : Vector2

Project a Vector3 onto a screen.

ProjectVector ( int width, int height, Vector4 vector, Matrix4 model = null ) : Vector2

Project a Vector4 onto a screen.

Method Details

Camera() public method

Create a new Camera object.
public Camera ( int fov, double near, double far ) : System
fov int The angle of the Field of View of the camera.
near double The distance from the Camera to the near clipping plane.
far double The distance from the Camera to the far clipping plane.
return System

ProjectVector() public method

Project a Vector3 onto a screen.
public ProjectVector ( int width, int height, Vector3 vector, Matrix4 model = null ) : Vector2
width int The width of the buffer that is being rendered to.
height int The height of the buffer that is being rendered to.
vector Vector3 The Vector3 to project.
model Matrix4 The model matrix of the object that is being rendered.
return Vector2

ProjectVector() public method

Project a Vector4 onto a screen.
public ProjectVector ( int width, int height, Vector4 vector, Matrix4 model = null ) : Vector2
width int The width of the buffer that is being rendered to.
height int The height of the buffer that is being rendered to.
vector Vector4 The Vector4 to project.
model Matrix4 The model matrix of the object that is being rendered.
return Vector2