共用方式為


Short2 Constructor (Vector2)

Initializes a new instance of the Short2 structure.

Syntax

'Declaration
Public Sub New ( _
         vector As Vector2 _
)
public Short2 (
         Vector2 vector
)
public:
Short2(
         Vector2 vector
)

Parameters

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

Requirements

Namespace: Microsoft.Xna.Framework.Graphics.PackedVector

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

See Also

Reference

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

Platforms

Windows Phone