Table of Contents

Method Rej

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Rej(Vector2, Vector2)

Returns the rejection of this vector onto the given base.

public static Vector2 Rej(this Vector2 vector, Vector2 baseVector)

Parameters

vector Vector2
baseVector Vector2

Returns

Vector2

Remarks

The sum of a vector's projection and rejection on a base is equal to the original vector.

Rej(Vector3, Vector3)

Returns the rejection of this vector onto the given base.

public static Vector3 Rej(this Vector3 vector, Vector3 baseVector)

Parameters

vector Vector3
baseVector Vector3

Returns

Vector3

Remarks

The sum of a vector's projection and rejection on a base is equal to the original vector.

Rej(Vector4, Vector4)

Returns the rejection of this vector onto the given base. The sum of a vector's projection and rejection on a base is equal to the original vector.

public static Vector4 Rej(this Vector4 vector, Vector4 baseVector)

Parameters

vector Vector4
baseVector Vector4

Returns

Vector4