Vector2 Vector2 Vector2 Vector2 Vector2 Struct

Definition

Describes a vector of two floating-point components.

public : struct Vector2
struct winrt::Windows::Foundation::Numerics::Vector2
public struct Vector2
Public Structure Vector2
var vector2 = {

   x: /* Your value */,

   y: /* Your value */

}
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

X X X X X

The x component of the vector.

float X;
float X;
float X;
X As float;
var float = vector2.x;
vector2.x = float;

Y Y Y Y Y

The y component of the vector.

float Y;
float Y;
float Y;
Y As float;
var float = vector2.y;
vector2.y = float;