Short2 Constructor (Single, Single)

Initializes a new instance of the Short2 class.

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

Syntax

public Short2 (
         float x,
         float y
)

Parameters

  • x
    Initial value for the x component.
  • y
    Initial value for the y component.

See Also

Reference

Short2 Structure
Short2 Members
Microsoft.Xna.Framework.Graphics.PackedVector Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista