C# Класс MiningGame.ExtensionMethods.ExtensionMethods

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ApproachZero() публичный статический Метод

public static ApproachZero ( this vec ) : void
vec this
Результат void

ApproachZeroX() публичный статический Метод

public static ApproachZeroX ( this vec ) : void
vec this
Результат void

ApproachZeroY() публичный статический Метод

public static ApproachZeroY ( this vec ) : void
vec this
Результат void

BitMaskToBools() публичный статический Метод

public static BitMaskToBools ( this bitmask ) : bool[]
bitmask this
Результат bool[]

BitSet() публичный статический Метод

public static BitSet ( this toCheck, int index ) : bool
toCheck this
index int
Результат bool

ConcatString() публичный статический Метод

public static ConcatString ( this array, string delim ) : string
array this
delim string
Результат string

DToR() публичный статический Метод

public static DToR ( this f ) : float
f this
Результат float

RToD() публичный статический Метод

public static RToD ( this f ) : float
f this
Результат float

SetBit() публичный статический Метод

public static SetBit ( this toSet, int index, bool set = true ) : byte
toSet this
index int
set bool
Результат byte

SetBit() публичный статический Метод

public static SetBit ( this toSet, int index, bool set = true ) : int
toSet this
index int
set bool
Результат int

SetBit() публичный статический Метод

public static SetBit ( this toSet, int index, bool set = true ) : long
toSet this
index int
set bool
Результат long

SetBit() публичный статический Метод

public static SetBit ( this toSet, int index, bool set = true ) : short
toSet this
index int
set bool
Результат short

ToPoint() публичный статический Метод

public static ToPoint ( this vec ) : Point
vec this
Результат Point

ToVector2() публичный статический Метод

public static ToVector2 ( this p ) : Vector2
p this
Результат Vector2