C# Класс StdPaint.Camera

Represents a view to render a scene from.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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