C# Class 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.
Inheritance: ProjectionCamera
Datei anzeigen Open project: tgjones/nexus Class Usage Examples

Public Methods

Method Description
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

Method Details

CreateFromBounds() public static method

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
return PerspectiveCamera

GetProjectionMatrix() public method

public GetProjectionMatrix ( float aspectRatio ) : Matrix3D
aspectRatio float
return Matrix3D

PerspectiveCamera() public method

public PerspectiveCamera ( ) : Nexus.Objects2D
return Nexus.Objects2D