| PerspectiveViewVolume Constructor (Single, Single, Single, Single) |
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public PerspectiveViewVolume(
float fieldOfViewY,
float aspectRatio,
float near,
float far
)
Public Sub New (
fieldOfViewY As Single,
aspectRatio As Single,
near As Single,
far As Single
)
public:
PerspectiveViewVolume(
float fieldOfViewY,
float aspectRatio,
float near,
float far
)
new :
fieldOfViewY : float32 *
aspectRatio : float32 *
near : float32 *
far : float32 -> PerspectiveViewVolume
Parameters
- fieldOfViewY
- Type: SystemSingle
The vertical field of view. - aspectRatio
- Type: SystemSingle
The aspect ratio (width / height). - near
- Type: SystemSingle
The distance to the near clip plane. - far
- Type: SystemSingle
The distance to the far clip plane.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | fieldOfViewY is not between 0 and π radians (0° and 180°),
aspectRatio is negative or 0, near is negative or 0,
or far is negative or 0.
|
ArgumentException | near is greater than or equal to far.
|
See Also