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
Afficher le fichier Open project: Christof/afterglow Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat Matrix

PerspectiveProjectionLense() public méthode

Initializes a new instance of the PerspectiveProjectionLense class.
public PerspectiveProjectionLense ( ) : Afterglow.Math
Résultat Afterglow.Math