Short2 Constructor (Vector2)

Initializes a new instance of the Short2 structure.

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

Syntax

public Short2 (
         Vector2 vector
)

Parameters

  • vector
    A vector containing the initial values for the components of the Short2 structure.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista