C# 클래스 StdPaint.Camera

Represents a view to render a scene from.
파일 보기 프로젝트 열기: TheBerkin/StdPaint 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Camera() 공개 메소드

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.
리턴 System

ProjectVector() 공개 메소드

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.
리턴 Vector2

ProjectVector() 공개 메소드

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.
리턴 Vector2