Click or drag to resize
DigitalRunePerspectiveViewVolumeSetFieldOfView Method (Single, Single, Single, Single)
Sets the dimensions of the frustum to the specified field of view and near/far values.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public void SetFieldOfView(
	float fieldOfViewY,
	float aspectRatio,
	float near,
	float far
)

Parameters

fieldOfViewY
Type: SystemSingle
The vertical field of view.
aspectRatio
Type: SystemSingle
The aspect ratio (width / height).
near
Type: SystemSingle
The distance to the near clip plane.
far
Type: SystemSingle
The distance to the far clip plane.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionfieldOfViewY is not between 0 and π radians (0° and 180°), aspectRatio is negative or 0, near is negative or 0, or far is negative or 0.
ArgumentExceptionnear is greater than or equal to far.
Remarks
This method creates a symmetric frustum.
See Also