Vector2.Vector2 Method (Microsoft.Xna.Framework)

Constructs a 2d vector with X and Y from two values.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public Vector2(
	float x, 
	float y

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: System.Single
The x coordinate in 2d-space.
Type: System.Single
The y coordinate in 2d-space.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop