C# Class StdPaint.Camera

Represents a view to render a scene from.
Afficher le fichier Open project: TheBerkin/StdPaint Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

ProjectVector() public méthode

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.
Résultat Vector2

ProjectVector() public méthode

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.
Résultat Vector2