Vector2 Vector2 Constructors

Definition

Overloads

Vector2(Vector2) Vector2(Vector2)

Constructs a new Vector2 from the given Vector2.

Vector2(Vector3) Vector2(Vector3)

Constructs a new Vector2 from the given Vector3.

Vector2(Vector4) Vector2(Vector4)

Constructs a new Vector2 from the given Vector4.

Vector2(Single) Vector2(Single)
Vector2(Single, Single) Vector2(Single, Single)

Constructs a new Vector2.

Vector2(Vector2) Vector2(Vector2)

Warning

This API is now obsolete.

Constructs a new Vector2 from the given Vector2.

[System.Obsolete]
public Vector2 (OpenTK.Vector2 v);
new OpenTK.Vector2 : OpenTK.Vector2 -> OpenTK.Vector2

Parameters

v
Vector2 Vector2

The Vector2 to copy components from.

Vector2(Vector3) Vector2(Vector3)

Warning

This API is now obsolete.

Constructs a new Vector2 from the given Vector3.

[System.Obsolete]
public Vector2 (OpenTK.Vector3 v);
new OpenTK.Vector2 : OpenTK.Vector3 -> OpenTK.Vector2

Parameters

v
Vector3 Vector3

The Vector3 to copy components from. Z is discarded.

Vector2(Vector4) Vector2(Vector4)

Warning

This API is now obsolete.

Constructs a new Vector2 from the given Vector4.

[System.Obsolete]
public Vector2 (OpenTK.Vector4 v);
new OpenTK.Vector2 : OpenTK.Vector4 -> OpenTK.Vector2

Parameters

v
Vector4 Vector4

The Vector4 to copy components from. Z and W are discarded.

Vector2(Single) Vector2(Single)

public Vector2 (float value);
new OpenTK.Vector2 : single -> OpenTK.Vector2

Parameters

value
Single Single

Vector2(Single, Single) Vector2(Single, Single)

Constructs a new Vector2.

public Vector2 (float x, float y);
new OpenTK.Vector2 : single * single -> OpenTK.Vector2

Parameters

x
Single Single

The x coordinate of the net Vector2.

y
Single Single

The y coordinate of the net Vector2.

Applies to