Click or drag to resize
DigitalRunePerspectiveProjectionSet Method (Single, Single, Single, Single)
Sets a symmetric, perspective projection based on size and depth.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void Set(
	float width,
	float height,
	float near,
	float far
)

Parameters

width
Type: SystemSingle
The width of the frustum at the near clip plane.
height
Type: SystemSingle
The height of the frustum 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
ExceptionCondition
ArgumentOutOfRangeExceptionwidth or height is negative or 0.
ArgumentExceptionnear is greater than or equal to far.
See Also