Click or drag to resize
DigitalRunePerspectiveViewVolumeGetFieldOfView Method
Gets the field of view from a frustum with the given extent.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static float GetFieldOfView(
	float extent,
	float distance
)

Parameters

extent
Type: SystemSingle
The extent of the frustum at the specified distance.
distance
Type: SystemSingle
The distance.

Return Value

Type: Single
The field of view for the given extent.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionextent is negative, or distance is negative or 0.
Remarks
To get the horizontal field of view the horizontal extent (x direction) needs to be specified. To get the vertical field of view the vertical extent (y direction) needs to be specified.
See Also