| PerspectiveProjectionSetOffCenter Method (Single, Single, Single, Single) |
Sets an asymmetric (off-center), perspective projection based on the given values.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public void SetOffCenter(
float left,
float right,
float bottom,
float top
)
Public Sub SetOffCenter (
left As Single,
right As Single,
bottom As Single,
top As Single
)
public:
void SetOffCenter(
float left,
float right,
float bottom,
float top
)
member SetOffCenter :
left : float32 *
right : float32 *
bottom : float32 *
top : float32 -> unit
Parameters
- left
- Type: SystemSingle
The minimum x-value of the frustum at the near clip plane. - right
- Type: SystemSingle
The maximum x-value of the frustum at the near clip plane. - bottom
- Type: SystemSingle
The minimum y-value of the frustum at the near clip plane. - top
- Type: SystemSingle
The maximum y-value of the frustum at the near clip plane.
Exceptions Exception | Condition |
---|
ArgumentException | left is greater than or equal to right, or
bottom is greater than or equal to top.
|
Remarks
This method can be used to define an asymmetric, off-center frustum.
See Also