Vector2.Vector2 Method (Microsoft.Xna.Framework)
Constructs a 2d vector with X and Y set to the same value.
- C#
- VB
- F#
public Vector2( float value )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- value
-
Type: System.Single
The x and y coordinates in 2d-space.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web