C# 클래스 FSO.Common.Utils.DirectionUtils

파일 보기 프로젝트 열기: RHY3756547/FreeSO

공개 메소드들

메소드 설명
Difference ( double a, double b ) : double

Finds the difference between two radian directions.

Normalize ( double dir ) : double

Normalizes a direction to the range -PI through PI.

NormalizeDegrees ( double dir ) : double

Normalizes a direction in degrees to the range -180 through 180.

PosMod ( double x, double m ) : double

Calculates the mathematical modulus of a value.

메소드 상세

Difference() 공개 정적인 메소드

Finds the difference between two radian directions.
public static Difference ( double a, double b ) : double
a double The direction to subtract from.
b double The direction to subtract.
리턴 double

Normalize() 공개 정적인 메소드

Normalizes a direction to the range -PI through PI.
public static Normalize ( double dir ) : double
dir double The direction to normalize.
리턴 double

NormalizeDegrees() 공개 정적인 메소드

Normalizes a direction in degrees to the range -180 through 180.
public static NormalizeDegrees ( double dir ) : double
dir double The direction to normalize.
리턴 double

PosMod() 공개 정적인 메소드

Calculates the mathematical modulus of a value.
public static PosMod ( double x, double m ) : double
x double The number to mod.
m double
리턴 double