C# Class MiningGame.ExtensionMethods.ExtensionMethods

Mostra file Open project: geel9/Minor-Destruction

Public Methods

Method Description
ApproachZero ( this vec ) : void
ApproachZeroX ( this vec ) : void
ApproachZeroY ( this vec ) : void
BitMaskToBools ( this bitmask ) : bool[]
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 ) : void
vec this
return void

ApproachZeroX() public static method

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

ApproachZeroY() public static method

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

BitMaskToBools() public static method

public static BitMaskToBools ( this bitmask ) : bool[]
bitmask this
return bool[]

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