Upravit

Sdílet prostřednictvím


Vector2 Constructors

Definition

Overloads

Vector2(Vector2)
Obsolete.

Constructs a new Vector2 from the given Vector2.

Vector2(Vector3)
Obsolete.

Constructs a new Vector2 from the given Vector3.

Vector2(Vector4)
Obsolete.

Constructs a new Vector2 from the given Vector4.

Vector2(Single)
Vector2(Single, Single)

Constructs a new Vector2.

Vector2(Vector2)

Caution

This API is now deprecated.

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

The Vector2 to copy components from.

Attributes

Applies to

Vector2(Vector3)

Caution

This API is now deprecated.

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

The Vector3 to copy components from. Z is discarded.

Attributes

Applies to

Vector2(Vector4)

Caution

This API is now deprecated.

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

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

Attributes

Applies to

Vector2(Single)

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

Parameters

value
Single

Applies to

Vector2(Single, Single)

Constructs a new Vector2.

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

Parameters

x
Single

The x coordinate of the net Vector2.

y
Single

The y coordinate of the net Vector2.

Applies to