C# 클래스 FootballSimulation.VectorExtensions

Provides extension methods for the Vector2 structure.
파일 보기 프로젝트 열기: PurdueSIGAI/Soccer

공개 메소드들

메소드 설명
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