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

The vector to project.

baseVector Vector2

The base vector to project onto.

Returns

Vector2

The projection of vector onto baseVector.

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

The vector to project.

baseVector Vector3

The base vector to project onto.

Returns

Vector3

The projection of vector onto baseVector.

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

The vector to project.

baseVector Vector4

The base vector to project onto.

Returns

Vector4

The projection of vector onto baseVector.