Microsoft.Xna.Framework.Vector2.Vector2 C# (CSharp) Method

Vector2() public method

Initializes a new instance of Vector2.
public Vector2 ( float x, float y ) : System
x float Initial value for the x-component of the vector.
y float Initial value for the y-component of the vector.
return System
        public Vector2(float x, float y)
        {
            this.X = x;
            this.Y = y;
        }
        /// <summary>Creates a new instance of Vector2.</summary>

Same methods

Vector2::Vector2 ( float value ) : System