Share via


Vector2.Length Method (Vector2)

Returns the length of a specified 2-D vector.

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

Syntax

'Declaration
Public Shared Function Length ( _
    source As Vector2 _
) As Single
'Usage
Dim source As Vector2
Dim returnValue As Single

returnValue = Vector2.Length(source)
public static float Length (
    Vector2 source
)
public:
static float Length (
    Vector2 source
)
public static float Length (
    Vector2 source
)
public static function Length (
    source : Vector2
) : float
Not applicable.

Parameters

Return Value

The length of the vector specified by source.

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.WindowsMobile.DirectX Namespace