| PerspectiveViewVolumeGetFieldOfView Method |
Gets the field of view from a frustum with the given extent.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static float GetFieldOfView(
float extent,
float distance
)
Public Shared Function GetFieldOfView (
extent As Single,
distance As Single
) As Single
public:
static float GetFieldOfView(
float extent,
float distance
)
static member GetFieldOfView :
extent : float32 *
distance : float32 -> float32
Parameters
- extent
- Type: SystemSingle
The extent of the frustum at the specified distance.
- distance
- Type: SystemSingle
The distance.
Return Value
Type:
SingleThe field of view for the given extent.
Exceptions 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