次の方法で共有


Vector2 Constructor (Single, Single)

Initializes a new instance of Vector2.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public Vector2 (
         float x,
         float y
)

Parameters

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

See Also

Reference

Vector2 Structure
Vector2 Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista