Vector2 Constructor (Single, Single)

Initializes a new instance of Vector2.

Syntax

'Declaration
Public Sub New ( _
         x As Single, _
         y As Single _
)
public Vector2 (
         float x,
         float y
)
public:
Vector2(
         float x,
         float y
)

Parameters

  • x
    Type: Single
    Initial value for the x-component of the vector.
  • y
    Type: Single
    Initial value for the y-component of the vector.

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