| PerspectiveViewVolumeGetFieldOfViewX Method |
Converts the vertical field of view of a symmetric frustum to a horizontal field of view.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static float GetFieldOfViewX(
float fieldOfViewY,
float aspectRatio
)
Public Shared Function GetFieldOfViewX (
fieldOfViewY As Single,
aspectRatio As Single
) As Single
public:
static float GetFieldOfViewX(
float fieldOfViewY,
float aspectRatio
)
static member GetFieldOfViewX :
fieldOfViewY : float32 *
aspectRatio : float32 -> float32
Parameters
- fieldOfViewY
- Type: SystemSingle
The vertical field of view in radians. - aspectRatio
- Type: SystemSingle
The aspect ratio (width / height).
Return Value
Type:
SingleThe horizontal field of view in radians.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | fieldOfViewY is not between 0 and π radians (0° and 180°), or
aspectRatio is negative or 0.
|
See Also