C# Класс Nexus.Graphics.Cameras.PerspectiveCamera

Represents a perspective projection camera.
PerspectiveCamera specifies a projection of a 3-D model to a 2-D visual surface. This projection includes perspective foreshortening. In other words, the PerspectiveCamera describes a frustrum whose sides converge toward a point on the horizon. Objects closer to the camera appear larger, and objects farther from the camera appear smaller.
Наследование: ProjectionCamera
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateFromBounds ( AxisAlignedBox3D bounds, Viewport3D viewport, float fieldOfView, float yaw = 0.0f, float pitch = 0.0f, float zoom = 1.0f ) : PerspectiveCamera
GetProjectionMatrix ( float aspectRatio ) : Matrix3D
PerspectiveCamera ( ) : Nexus.Objects2D

Описание методов

CreateFromBounds() публичный статический Метод

public static CreateFromBounds ( AxisAlignedBox3D bounds, Viewport3D viewport, float fieldOfView, float yaw = 0.0f, float pitch = 0.0f, float zoom = 1.0f ) : PerspectiveCamera
bounds Nexus.Objects3D.AxisAlignedBox3D
viewport Viewport3D
fieldOfView float
yaw float
pitch float
zoom float
Результат PerspectiveCamera

GetProjectionMatrix() публичный Метод

public GetProjectionMatrix ( float aspectRatio ) : Matrix3D
aspectRatio float
Результат Matrix3D

PerspectiveCamera() публичный Метод

public PerspectiveCamera ( ) : Nexus.Objects2D
Результат Nexus.Objects2D