C# 클래스 UnityPlatformerUtils.Compare

파일 보기 프로젝트 열기: LukeZaz/UnityPlatformerUtils

공개 메소드들

메소드 설명
inRange ( double num, double first, double second ) : bool

Tests if a double is within the provided range. Also returns true if the number was equal to the lower or upper limit.

inRange ( float num, float first, float second ) : bool

Tests if a float is within the provided range. Also returns true if the number was equal to the lower or upper limit.

inRange ( int num, int first, int second ) : bool

Tests if a integer is within the provided range. Also returns true if the number was equal to the lower or upper limit.

메소드 상세

inRange() 공개 정적인 메소드

Tests if a double is within the provided range. Also returns true if the number was equal to the lower or upper limit.
public static inRange ( double num, double first, double second ) : bool
num double Number to check.
first double First part of range. Can be lower or higher than second.
second double Second part of range. Can be lower or higher than first.
리턴 bool

inRange() 공개 정적인 메소드

Tests if a float is within the provided range. Also returns true if the number was equal to the lower or upper limit.
public static inRange ( float num, float first, float second ) : bool
num float Number to check.
first float First part of range. Can be lower or higher than second.
second float Second part of range. Can be lower or higher than first.
리턴 bool

inRange() 공개 정적인 메소드

Tests if a integer is within the provided range. Also returns true if the number was equal to the lower or upper limit.
public static inRange ( int num, int first, int second ) : bool
num int Number to check.
first int First part of range. Can be lower or higher than second.
second int Second part of range. Can be lower or higher than first.
리턴 bool