C# Class MiningGameServer.ExtensionMethods.ExtensionMethods

显示文件 Open project: geel9/Minor-Destruction

Public Methods

Method Description
ApproachZero ( this vec ) : Vector2
ApproachZeroX ( this vec ) : Vector2
ApproachZeroY ( this vec ) : Vector2
BitSet ( this toCheck, int index ) : bool
ConcatString ( this array, string delim ) : string
DToR ( this f ) : float
RToD ( this f ) : float
SetBit ( this toSet, int index, bool set = true ) : byte
SetBit ( this toSet, int index, bool set = true ) : int
SetBit ( this toSet, int index, bool set = true ) : long
SetBit ( this toSet, int index, bool set = true ) : short
ToPoint ( this vec ) : Point
ToVector2 ( this p ) : Vector2

Method Details

ApproachZero() public static method

public static ApproachZero ( this vec ) : Vector2
vec this
return Vector2

ApproachZeroX() public static method

public static ApproachZeroX ( this vec ) : Vector2
vec this
return Vector2

ApproachZeroY() public static method

public static ApproachZeroY ( this vec ) : Vector2
vec this
return Vector2

BitSet() public static method

public static BitSet ( this toCheck, int index ) : bool
toCheck this
index int
return bool

ConcatString() public static method

public static ConcatString ( this array, string delim ) : string
array this
delim string
return string

DToR() public static method

public static DToR ( this f ) : float
f this
return float

RToD() public static method

public static RToD ( this f ) : float
f this
return float

SetBit() public static method

public static SetBit ( this toSet, int index, bool set = true ) : byte
toSet this
index int
set bool
return byte

SetBit() public static method

public static SetBit ( this toSet, int index, bool set = true ) : int
toSet this
index int
set bool
return int

SetBit() public static method

public static SetBit ( this toSet, int index, bool set = true ) : long
toSet this
index int
set bool
return long

SetBit() public static method

public static SetBit ( this toSet, int index, bool set = true ) : short
toSet this
index int
set bool
return short

ToPoint() public static method

public static ToPoint ( this vec ) : Point
vec this
return Point

ToVector2() public static method

public static ToVector2 ( this p ) : Vector2
p this
return Vector2