Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Matrix.OrthoLH Method

Builds a left-handed orthogonal projection matrix.

Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

public static Matrix OrthoLH (
	float width,
	float height,
	float znearPlane,
	float zfarPlane
)
public static Matrix OrthoLH (
	float width, 
	float height, 
	float znearPlane, 
	float zfarPlane
)
public static function OrthoLH (
	width : float, 
	height : float, 
	znearPlane : float, 
	zfarPlane : float
) : Matrix

Parameters

width

Width of the view volume.

height

Height of the view volume.

znearPlane

Minimum z-value of the view volume, which is referred to as z-near.

zfarPlane

Maximum z-value of the view volume, which is referred to as z-far.

Return Value

A Matrix structure that is a left-handed orthogonal projection matrix.

An orthogonal matrix is an invertible matrix for which the inverse is equal to the transpose.

All of the parameters of the OrthoLH method are distances in camera space. The parameters describe the dimensions of the view volume.

This method uses the following formula to compute the returned matrix.

2/width    0         0                                  0
0          2/height  0                                  0
0          0         1/(zfarPlane-znearPlane)           0
0          0         znearPlane/(znearPlane-zfarPlane)  1

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft