C# Класс FootballSimulation.VectorExtensions

Provides extension methods for the Vector2 structure.
Показать файл Открыть проект

Открытые методы

Метод Описание
ClampMagnitude ( this vector, float maxLength ) : System.Numerics.Vector2

Returns a copy of the Vector2 with its magnitude clamped to maxLength.

Projection ( this v, System.Numerics.Vector2 other ) : System.Numerics.Vector2

Rejection ( this v, System.Numerics.Vector2 other ) : System.Numerics.Vector2

Описание методов

ClampMagnitude() публичный статический Метод

Returns a copy of the Vector2 with its magnitude clamped to maxLength.
public static ClampMagnitude ( this vector, float maxLength ) : System.Numerics.Vector2
vector this The to clamp.
maxLength float The maximum of length of the returned .
Результат System.Numerics.Vector2

Projection() публичный статический Метод

public static Projection ( this v, System.Numerics.Vector2 other ) : System.Numerics.Vector2
v this
other System.Numerics.Vector2
Результат System.Numerics.Vector2

Rejection() публичный статический Метод

public static Rejection ( this v, System.Numerics.Vector2 other ) : System.Numerics.Vector2
v this
other System.Numerics.Vector2
Результат System.Numerics.Vector2