C# Класс 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.
Наследование: ILense
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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.
Результат Matrix

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

Initializes a new instance of the PerspectiveProjectionLense class.
public PerspectiveProjectionLense ( ) : Afterglow.Math
Результат Afterglow.Math