C# 클래스 Nintenlord.Utility.IntegerExtensions

Extensions and helper methods to integers
파일 보기 프로젝트 열기: Diegoisawesome/AwesomeMapEditor-old

공개 메소드들

메소드 설명
Clamp ( this i, int min, int max ) : int
Clamp ( int &i, int min, int max ) : void
Intersects ( int index1, int length1, int index2, int length2 ) : bool
IsInRange ( this i, int min, int max ) : bool
IsInRangeHO ( this i, int min, int max ) : bool
ToBinString ( this i, string postfix ) : string
ToBinString ( this i, string prefix, string postfix ) : string
ToHexString ( this i, string prefix ) : string
ToHexString ( this i, string prefix, string postfix ) : string
ToMod ( this i, int mod ) : int
ToMod ( int &i, int mod ) : void
ToPower2 ( this value ) : int
ToPower2 ( int &value ) : void

메소드 상세

Clamp() 공개 정적인 메소드

public static Clamp ( this i, int min, int max ) : int
i this
min int
max int
리턴 int

Clamp() 공개 정적인 메소드

public static Clamp ( int &i, int min, int max ) : void
i int
min int
max int
리턴 void

Intersects() 공개 정적인 메소드

public static Intersects ( int index1, int length1, int index2, int length2 ) : bool
index1 int
length1 int
index2 int
length2 int
리턴 bool

IsInRange() 공개 정적인 메소드

public static IsInRange ( this i, int min, int max ) : bool
i this
min int
max int
리턴 bool

IsInRangeHO() 공개 정적인 메소드

public static IsInRangeHO ( this i, int min, int max ) : bool
i this
min int
max int
리턴 bool

ToBinString() 공개 정적인 메소드

public static ToBinString ( this i, string postfix ) : string
i this
postfix string
리턴 string

ToBinString() 공개 정적인 메소드

public static ToBinString ( this i, string prefix, string postfix ) : string
i this
prefix string
postfix string
리턴 string

ToHexString() 공개 정적인 메소드

public static ToHexString ( this i, string prefix ) : string
i this
prefix string
리턴 string

ToHexString() 공개 정적인 메소드

public static ToHexString ( this i, string prefix, string postfix ) : string
i this
prefix string
postfix string
리턴 string

ToMod() 공개 정적인 메소드

public static ToMod ( this i, int mod ) : int
i this
mod int
리턴 int

ToMod() 공개 정적인 메소드

public static ToMod ( int &i, int mod ) : void
i int
mod int
리턴 void

ToPower2() 공개 정적인 메소드

public static ToPower2 ( this value ) : int
value this
리턴 int

ToPower2() 공개 정적인 메소드

public static ToPower2 ( int &value ) : void
value int
리턴 void