| ViewVolumeSet Method (Single, Single, Single, Single, Single, Single) |
Sets the dimensions of the view volume (including depths).
Namespace: DigitalRune.Geometry.ShapesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public void Set(
float left,
float right,
float bottom,
float top,
float near,
float far
)
Public Sub Set (
left As Single,
right As Single,
bottom As Single,
top As Single,
near As Single,
far As Single
)
public:
void Set(
float left,
float right,
float bottom,
float top,
float near,
float far
)
member Set :
left : float32 *
right : float32 *
bottom : float32 *
top : float32 *
near : float32 *
far : float32 -> unit
Parameters
- left
- Type: SystemSingle
The minimum x-value of the view volume at the near clip plane. - right
- Type: SystemSingle
The maximum x-value of the view volume at the near clip plane. - bottom
- Type: SystemSingle
The minimum y-value of the view volume at the near clip plane. - top
- Type: SystemSingle
The maximum y-value of the view volume at the near clip plane. - near
- Type: SystemSingle
The distance to the near clip plane. - far
- Type: SystemSingle
The distance to the far clip plane.
Exceptions Exception | Condition |
---|
ArgumentException | left is greater than or equal to right,
bottom is greater than or equal to top, or
near is greater than or equal to far.
|
Remarks
This method can be used to define an asymmetric, off-center view volume.
See Also