Vector2.Sub Vector2.Sub Method

Definition

Overloads

Sub(Vector2, Vector2, Vector2) Sub(Vector2, Vector2, Vector2)

Subtract one Vector from another

Sub(Vector2, Vector2) Sub(Vector2, Vector2)
Sub(Vector2) Sub(Vector2)

Subtract the Vector passed as parameter from this instance.

Sub(Vector2) Sub(Vector2)

Subtract the Vector passed as parameter from this instance.

Sub(Vector2, Vector2, Vector2) Sub(Vector2, Vector2, Vector2)

Warning

This API is now obsolete.

Subtract one Vector from another

[System.Obsolete("Use static Subtract() method instead.")]
public static void Sub (ref OpenTK.Vector2 a, ref OpenTK.Vector2 b, out OpenTK.Vector2 result);
static member Sub :  *  *  -> unit

Parameters

a
Vector2 Vector2

First operand

b
Vector2 Vector2

Second operand

result
Vector2 Vector2

Result of subtraction

Sub(Vector2, Vector2) Sub(Vector2, Vector2)

Warning

This API is now obsolete.

[System.Obsolete("Use static Subtract() method instead.")]
public static OpenTK.Vector2 Sub (OpenTK.Vector2 a, OpenTK.Vector2 b);
static member Sub : OpenTK.Vector2 * OpenTK.Vector2 -> OpenTK.Vector2

Parameters

Returns

Sub(Vector2) Sub(Vector2)

Warning

This API is now obsolete.

Subtract the Vector passed as parameter from this instance.

[System.Obsolete("Use static Subtract() method instead.")]
public void Sub (OpenTK.Vector2 right);
member this.Sub : OpenTK.Vector2 -> unit

Parameters

right
Vector2 Vector2

Right operand. This parameter is only read from.

Sub(Vector2) Sub(Vector2)

Warning

This API is now obsolete.

Important

This API is not CLS-compliant.

Subtract the Vector passed as parameter from this instance.

[System.CLSCompliant(false)]
[System.Obsolete("Use static Subtract() method instead.")]
public void Sub (ref OpenTK.Vector2 right);
member this.Sub :  -> unit

Parameters

right
Vector2 Vector2

Right operand. This parameter is only read from.

Applies to