# Vector3 Structure

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Describes and manipulates a vector in three-dimensional (3-D) space.

Namespace:  Microsoft.WindowsMobile.DirectX
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

## Syntax

``````'Declaration
Public Structure Vector3
'Usage
Dim instance As Vector3
``````
``````public struct Vector3
``````
``````public value class Vector3
``````
``````[<SealedAttribute>]
type Vector3 =  struct end
``````

## Examples

The following example demonstrates how to use a Vector3 structure. This example is taken from the Direct3D Mobile Matrices Sample in the Windows Software Development Kit (SDK).

``````' Set up the view matrix. A view matrix can be defined given an eye point,
' a point to lookat, and a direction indicating which way is up. Here, you set
' the eye five units back along the z-axis and up three units, look at the
' origin, and define "up" to be in the y-direction.
device.Transform.View = Matrix.LookAtLH(New Vector3(0.0F, 3.0F, -5.0F), New Vector3(0.0F, 0.0F, 0.0F), New Vector3(0.0F, 1.0F, 0.0F))
``````
``````// Set up the view matrix. A view matrix can be defined given an eye point,
// a point to look at, and a direction indicating which way is up. Here, you set
// the eye five units back along the z-axis and up three units, look at the
// origin, and define "up" to be in the y-direction.
device.Transform.View = Matrix.LookAtLH(new Vector3(0.0f, 3.0f, -5.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f));
``````

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

## 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

#### Reference

Vector3 Members

Microsoft.WindowsMobile.DirectX Namespace

#### Other Resources

Mobile Direct3D Programming in the .NET Compact Framework