Matrix.PerspectiveOffCenterRH Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Builds a customized, right-handed perspective projection matrix.
Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Shared Function PerspectiveOffCenterRH ( _
left As Single, _
right As Single, _
bottom As Single, _
top As Single, _
znearPlane As Single, _
zfarPlane As Single _
) As Matrix
'Usage
Dim left As Single
Dim right As Single
Dim bottom As Single
Dim top As Single
Dim znearPlane As Single
Dim zfarPlane As Single
Dim returnValue As Matrix
returnValue = Matrix.PerspectiveOffCenterRH(left, _
right, bottom, top, znearPlane, zfarPlane)
public static Matrix PerspectiveOffCenterRH(
float left,
float right,
float bottom,
float top,
float znearPlane,
float zfarPlane
)
public:
static Matrix PerspectiveOffCenterRH(
float left,
float right,
float bottom,
float top,
float znearPlane,
float zfarPlane
)
static member PerspectiveOffCenterRH :
left:float32 *
right:float32 *
bottom:float32 *
top:float32 *
znearPlane:float32 *
zfarPlane:float32 -> Matrix
Parameters
- left
Type: System.Single
Minimum x-value of the view volume.
- right
Type: System.Single
Maximum x-value of the view volume.
- bottom
Type: System.Single
Minimum y-value of the view volume.
- top
Type: System.Single
Maximum y-value of the view volume.
- znearPlane
Type: System.Single
Minimum z-value of the view volume.
- zfarPlane
Type: System.Single
Maximum z-value of the view volume.
Return Value
Type: Microsoft.WindowsMobile.DirectX.Matrix
A Matrix structure that is a customized, right-handed perspective projection matrix.
Remarks
All of the parameters of the PerspectiveOffCenterRH 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*znearPlane/(right-left) 0 0 0
0 2*znearPlane*(top-bottom) 0 0
(left+right)/(right-left) (top+bottom)/(top-bottom) zfarPlane/(znearPlane-zfarPlane) -1
0 0 znearPlane*zfarPlane/(znearPlane-zfarPlane) 0
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5, 2.0