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
파일 보기 프로젝트 열기: Christof/afterglow 1 사용 예제들

공개 메소드들

메소드 설명
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