Vector3.Unproject Method (Vector3, Viewport, Matrix, Matrix, Matrix)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Projects the specified vector from screen space into object space.
Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
Syntax
'Declaration
Public Shared Function Unproject ( _
v As Vector3, _
viewport As Viewport, _
projection As Matrix, _
view As Matrix, _
world As Matrix _
) As Vector3
'Usage
Dim v As Vector3
Dim viewport As Viewport
Dim projection As Matrix
Dim view As Matrix
Dim world As Matrix
Dim returnValue As Vector3
returnValue = Vector3.Unproject(v, viewport, _
projection, view, world)
public static Vector3 Unproject(
Vector3 v,
Viewport viewport,
Matrix projection,
Matrix view,
Matrix world
)
public:
static Vector3 Unproject(
Vector3 v,
Viewport viewport,
Matrix projection,
Matrix view,
Matrix world
)
static member Unproject :
v:Vector3 *
viewport:Viewport *
projection:Matrix *
view:Matrix *
world:Matrix -> Vector3
Parameters
- v
Type: Microsoft.WindowsMobile.DirectX.Vector3
Source Vector3 structure.
- viewport
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Viewport
A Viewport structure that represents the viewport.
- projection
Type: Microsoft.WindowsMobile.DirectX.Matrix
A Matrix structure that represents the projection matrix.
- view
Type: Microsoft.WindowsMobile.DirectX.Matrix
A Matrix structure that represents the view matrix.
- world
Type: Microsoft.WindowsMobile.DirectX.Matrix
A Matrix structure that represents the world matrix.
Return Value
Type: Microsoft.WindowsMobile.DirectX.Vector3
A Vector3 structure that is the vector projected from screen space into object space.
.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