C# Class Afterglow.Graphics.Cameras.PerspectiveProjectionLense

Implements the ILense-interface by converting the 3d scene to a 2d scene with a perspective projection so that objects farer away appear smaller than near ones.
Inheritance: ILense
显示文件 Open project: Christof/afterglow Class Usage Examples

Public Methods

Method Description
CalculateProjectionMatrix ( float distanceToNearPlane, float distanceToFarPlane, float horizontalFieldOfView, float aspectRatio ) : Matrix

Calculates the projection matrix.

PerspectiveProjectionLense ( ) : Afterglow.Math

Initializes a new instance of the PerspectiveProjectionLense class.

Method Details

CalculateProjectionMatrix() public static method

Calculates the projection matrix.
public static CalculateProjectionMatrix ( float distanceToNearPlane, float distanceToFarPlane, float horizontalFieldOfView, float aspectRatio ) : Matrix
distanceToNearPlane float The distance to near plane.
distanceToFarPlane float The distance to far plane.
horizontalFieldOfView float The horizontal field of view.
aspectRatio float The aspect ratio.
return Matrix

PerspectiveProjectionLense() public method

Initializes a new instance of the PerspectiveProjectionLense class.
public PerspectiveProjectionLense ( ) : Afterglow.Math
return Afterglow.Math