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

Vector2() public method

Creates a new instance of Vector2.
public Vector2 ( float value ) : System
value float Value to initialize both components to.
return System
        public Vector2(float value)
        {
            this.Y = value;
            this.X = value;
        }
        /// <summary>Retrieves a string representation of the current object.</summary>

Same methods

Vector2::Vector2 ( float x, float y ) : System