| PerspectiveViewVolumeSetFieldOfView Method (Single, Single) |
Sets the dimensions of the frustum to the specified field of view.
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void SetFieldOfView(
float fieldOfViewY,
float aspectRatio
)
Public Sub SetFieldOfView (
fieldOfViewY As Single,
aspectRatio As Single
)
public:
void SetFieldOfView(
float fieldOfViewY,
float aspectRatio
)
member SetFieldOfView :
fieldOfViewY : float32 *
aspectRatio : float32 -> unit
Parameters
- fieldOfViewY
- Type: SystemSingle
The vertical field of view. - aspectRatio
- Type: SystemSingle
The aspect ratio (width / height).
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | fieldOfViewY is not between 0 and π radians (0° and 180°), or
aspectRatio is negative or 0.
|
Remarks
This method creates a symmetric frustum.
See Also