Short2 Constructor (Single, Single)

Initializes a new instance of the Short2 class.

Syntax

'Declaration
Public Sub New ( _
         x As Single, _
         y As Single _
)
public Short2 (
         float x,
         float y
)
public:
Short2(
         float x,
         float y
)

Parameters

  • x
    Type: Single
    Initial value for the x component.
  • y
    Type: Single
    Initial value for the y component.

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