Share via


Vector2 Constructor (Single)

Creates a new instance of Vector2.

Syntax

'Declaration
Public Sub New ( _
         value As Single _
)
public Vector2 (
         float value
)
public:
Vector2(
         float value
)

Parameters

  • value
    Type: Single
    Value to initialize both components to.

Requirements

Namespace: Microsoft.Xna.Framework

Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone