C# Class MiningGame.ExtensionMethods.ExtensionMethods

Afficher le fichier Open project: geel9/Minor-Destruction

Méthodes publiques

Méthode 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 méthode

public static ApproachZero ( this vec ) : void
vec this
Résultat void

ApproachZeroX() public static méthode

public static ApproachZeroX ( this vec ) : void
vec this
Résultat void

ApproachZeroY() public static méthode

public static ApproachZeroY ( this vec ) : void
vec this
Résultat void

BitMaskToBools() public static méthode

public static BitMaskToBools ( this bitmask ) : bool[]
bitmask this
Résultat bool[]

BitSet() public static méthode

public static BitSet ( this toCheck, int index ) : bool
toCheck this
index int
Résultat bool

ConcatString() public static méthode

public static ConcatString ( this array, string delim ) : string
array this
delim string
Résultat string

DToR() public static méthode

public static DToR ( this f ) : float
f this
Résultat float

RToD() public static méthode

public static RToD ( this f ) : float
f this
Résultat float

SetBit() public static méthode

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

SetBit() public static méthode

public static SetBit ( this toSet, int index, bool set = true ) : int
toSet this
index int
set bool
Résultat int

SetBit() public static méthode

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

SetBit() public static méthode

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

ToPoint() public static méthode

public static ToPoint ( this vec ) : Point
vec this
Résultat Point

ToVector2() public static méthode

public static ToVector2 ( this p ) : Vector2
p this
Résultat Vector2