C# 클래스 CSharpRoboticsLib.Utility.Util

Provides various mathematical and logical utility functions
파일 보기 프로젝트 열기: shockwave4488/CSharpRoboticsLib

공개 메소드들

메소드 설명
AccurateWaitMilliseconds ( double time ) : void

Waits for a specified time more accurately than Thread.Sleep()

AccurateWaitSeconds ( double time ) : void

Waits for a specified time more accurately than Thread.Sleep()

Limit ( double value, double low, double high ) : double

Limits the value to a low and high threshold

ToDegrees ( double radians ) : double

Converts radians to degrees

ToRadians ( double degrees ) : double

Converts degrees to radians

WrapDegrees ( double degrees ) : double

Wraps degrees around -180 to 180

WrapError ( double value, double setpoint, double min, double max ) : double

Wraps an error value around a maximum and minimum input.

WrapRadians ( double radians ) : double

Wraos radians around -PI and PI

메소드 상세

AccurateWaitMilliseconds() 공개 정적인 메소드

Waits for a specified time more accurately than Thread.Sleep()
public static AccurateWaitMilliseconds ( double time ) : void
time double Time in milliseconds to wait
리턴 void

AccurateWaitSeconds() 공개 정적인 메소드

Waits for a specified time more accurately than Thread.Sleep()
public static AccurateWaitSeconds ( double time ) : void
time double Time in seconds to wait
리턴 void

Limit() 공개 정적인 메소드

Limits the value to a low and high threshold
public static Limit ( double value, double low, double high ) : double
value double value to be limited
low double lower limit
high double upper limit
리턴 double

ToDegrees() 공개 정적인 메소드

Converts radians to degrees
public static ToDegrees ( double radians ) : double
radians double angle in radians
리턴 double

ToRadians() 공개 정적인 메소드

Converts degrees to radians
public static ToRadians ( double degrees ) : double
degrees double angle in degrees
리턴 double

WrapDegrees() 공개 정적인 메소드

Wraps degrees around -180 to 180
public static WrapDegrees ( double degrees ) : double
degrees double
리턴 double

WrapError() 공개 정적인 메소드

Wraps an error value around a maximum and minimum input.
public static WrapError ( double value, double setpoint, double min, double max ) : double
value double
setpoint double
min double
max double
리턴 double

WrapRadians() 공개 정적인 메소드

Wraos radians around -PI and PI
public static WrapRadians ( double radians ) : double
radians double
리턴 double