Click or drag to resize
DigitalRunePerspectiveProjectionSetFieldOfView Method (Single, Single)
Sets a symmetric, perspective projection based on field of view.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void SetFieldOfView(
	float fieldOfViewY,
	float aspectRatio
)

Parameters

fieldOfViewY
Type: SystemSingle
The vertical field of view.
aspectRatio
Type: SystemSingle
The aspect ratio (width / height).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionfieldOfViewY is not between 0 and π radians (0° and 180°), or aspectRatio is negative or 0.
Remarks
This method creates a symmetric frustum.
See Also