| PerspectiveViewVolumeGetExtent Method |
Gets the extent of the frustum at the given distance.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static float GetExtent(
float fieldOfView,
float distance
)
Public Shared Function GetExtent (
fieldOfView As Single,
distance As Single
) As Single
public:
static float GetExtent(
float fieldOfView,
float distance
)
static member GetExtent :
fieldOfView : float32 *
distance : float32 -> float32
Parameters
- fieldOfView
- Type: SystemSingle
The field of view in radians. - distance
- Type: SystemSingle
The distance at which the extent is calculated.
Return Value
Type:
SingleThe extent of the view volume at the given distance.
Exceptions 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