Share via


Vector2.Length Method

Returns the length of the current 2-D vector.

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

Syntax

'Declaration
Public Function Length As Single
'Usage
Dim instance As Vector2 
Dim returnValue As Single 

returnValue = instance.Length()
public float Length()
public:
float Length()
public function Length() : float

Return Value

Type: System.Single
Vector length.

.NET Framework Security

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

See Also

Reference

Vector2 Structure

Vector2 Members

Length Overload

Microsoft.WindowsMobile.DirectX Namespace