Table of Contents

Method Proj

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Proj(Vector2, Vector2)

Returns the projection of this vector onto the given base.

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

Parameters

vector Vector2
baseVector Vector2

Returns

Vector2

Proj(Vector3, Vector3)

Returns the projection of this vector onto the given base.

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

Parameters

vector Vector3
baseVector Vector3

Returns

Vector3

Proj(Vector4, Vector4)

Returns the projection of this vector onto the given base.

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

Parameters

vector Vector4
baseVector Vector4

Returns

Vector4