Click or drag to resize
DigitalRunePerspectiveViewVolumeGetExtent Method
Gets the extent of the frustum at the given distance.

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

Parameters

fieldOfView
Type: SystemSingle
The field of view in radians.
distance
Type: SystemSingle
The distance at which the extent is calculated.

Return Value

Type: Single
The extent of the view volume at the given distance.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionfieldOfView is not between 0 and π radians (0° and 180°), or distance is negative.
Remarks

To calculate the width of the frustum the horizontal field of view must be specified. To calculate the height of the frustum the vertical field of view needs to be specified.

See Also