C# Класс Yodiwo.Extensions

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

Открытые свойства

Свойство Тип Описание
UnixEpoch System.DateTime

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

Метод Описание
Abs ( this value ) : double
Abs ( this value ) : float
Abs ( this value ) : int
AlmostEqual ( this value, double testvalue, double error ) : bool
AlmostEqual ( this value, double testvalue, double lower_error, double upper_error ) : bool
AlmostEqual ( this value, float testvalue, float error ) : bool
AlmostEqual ( this value, float testvalue, float lower_error, float upper_error ) : bool
AlmostEqual ( this value, int test_value, int error ) : bool
AlmostEqual ( this value, int test_value, int lower_error, int higher_error ) : bool
AlmostEqual_NonInclusive ( this value, int test_value, int error ) : bool
AlmostEqual_NonInclusive ( this value, int test_value, int lower_error, int higher_error ) : bool
AssemblyQualifiedName_Portable ( this type ) : string
Clamp ( this value, double min, double max ) : double
Clamp ( this value, float min, float max ) : float
Clamp ( this value, int min, int max ) : int
ClampCeil ( this value, double value2 ) : double
ClampCeil ( this value, float value2 ) : float
ClampCeil ( this value, int max ) : int
ClampFloor ( this value, double value2 ) : double
ClampFloor ( this value, float value2 ) : float
ClampFloor ( this value, int min ) : int
CreateDelegate ( this mi, object Target ) : Delegate
DeFriendlifyName ( string type ) : string
FromUnix ( int value ) : System.DateTime
FromUnixMilli ( ulong value ) : System.DateTime
GetEnumUnderlyingType ( this enumType ) : Type
GetFriendlyName ( this type ) : string
GetIPAddress ( this endpoint ) : IPAddress
GetMemberType ( this mi ) : Type
GetPort ( this endpoint ) : int
HtmlDecodeObject ( this obj ) : Object
HtmlEncodeObject ( this obj ) : Object
InvertedClamp ( this value, double min, double max ) : double
InvertedClamp ( this value, float min, float max ) : float
IsDecimal ( this type ) : bool
IsDictionary ( this type ) : bool
IsInteger ( this type ) : bool
IsList ( this type ) : bool
IsNumber ( this type ) : bool
IsReadable ( this mi ) : bool
IsStatic ( this mi ) : bool
Lerp ( this value, double min, double max, double window_rescaler = 1f ) : double
Lerp ( this value, float min, float max, float window_rescaler = 1f ) : float
MoveTowards ( this value, double target, double byvalue ) : double
MoveTowards ( this value, float target, float byvalue ) : float
NamePortable ( this assembly ) : string
Name_Portable ( this type ) : string
Rescale ( this value, double from_min, double from_max, double to_min, double to_max ) : double
Rescale ( this value, float from_min, float from_max, float to_min, float to_max ) : float
Saturate ( this value ) : double
Saturate ( this value ) : float
ToChar ( this value ) : char
ToStringEx ( this f ) : string
ToUnix ( this value ) : System.TimeSpan
ToUnixMilli ( this value ) : ulong
isBetweenValues ( this value, int min, int max ) : bool
isBetweenValues_NonInclusive ( this value, int min, int max ) : bool

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

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

public static Abs ( this value ) : double
value this
Результат double

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

public static Abs ( this value ) : float
value this
Результат float

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

public static Abs ( this value ) : int
value this
Результат int

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

public static AlmostEqual ( this value, double testvalue, double error ) : bool
value this
testvalue double
error double
Результат bool

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

public static AlmostEqual ( this value, double testvalue, double lower_error, double upper_error ) : bool
value this
testvalue double
lower_error double
upper_error double
Результат bool

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

public static AlmostEqual ( this value, float testvalue, float error ) : bool
value this
testvalue float
error float
Результат bool

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

public static AlmostEqual ( this value, float testvalue, float lower_error, float upper_error ) : bool
value this
testvalue float
lower_error float
upper_error float
Результат bool

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

public static AlmostEqual ( this value, int test_value, int error ) : bool
value this
test_value int
error int
Результат bool

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

public static AlmostEqual ( this value, int test_value, int lower_error, int higher_error ) : bool
value this
test_value int
lower_error int
higher_error int
Результат bool

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

public static AlmostEqual_NonInclusive ( this value, int test_value, int error ) : bool
value this
test_value int
error int
Результат bool

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

public static AlmostEqual_NonInclusive ( this value, int test_value, int lower_error, int higher_error ) : bool
value this
test_value int
lower_error int
higher_error int
Результат bool

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

public static AssemblyQualifiedName_Portable ( this type ) : string
type this
Результат string

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

public static Clamp ( this value, double min, double max ) : double
value this
min double
max double
Результат double

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

public static Clamp ( this value, float min, float max ) : float
value this
min float
max float
Результат float

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

public static Clamp ( this value, int min, int max ) : int
value this
min int
max int
Результат int

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

public static ClampCeil ( this value, double value2 ) : double
value this
value2 double
Результат double

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

public static ClampCeil ( this value, float value2 ) : float
value this
value2 float
Результат float

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

public static ClampCeil ( this value, int max ) : int
value this
max int
Результат int

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

public static ClampFloor ( this value, double value2 ) : double
value this
value2 double
Результат double

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

public static ClampFloor ( this value, float value2 ) : float
value this
value2 float
Результат float

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

public static ClampFloor ( this value, int min ) : int
value this
min int
Результат int

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

public static CreateDelegate ( this mi, object Target ) : Delegate
mi this
Target object
Результат System.Delegate

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

public static DeFriendlifyName ( string type ) : string
type string
Результат string

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

public static FromUnix ( int value ) : System.DateTime
value int
Результат System.DateTime

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

public static FromUnixMilli ( ulong value ) : System.DateTime
value ulong
Результат System.DateTime

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

public static GetEnumUnderlyingType ( this enumType ) : Type
enumType this
Результат System.Type

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

public static GetFriendlyName ( this type ) : string
type this
Результат string

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

public static GetIPAddress ( this endpoint ) : IPAddress
endpoint this
Результат IPAddress

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

public static GetMemberType ( this mi ) : Type
mi this
Результат System.Type

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

public static GetPort ( this endpoint ) : int
endpoint this
Результат int

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

public static HtmlDecodeObject ( this obj ) : Object
obj this
Результат Object

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

public static HtmlEncodeObject ( this obj ) : Object
obj this
Результат Object

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

public static InvertedClamp ( this value, double min, double max ) : double
value this
min double
max double
Результат double

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

public static InvertedClamp ( this value, float min, float max ) : float
value this
min float
max float
Результат float

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

public static IsDecimal ( this type ) : bool
type this
Результат bool

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

public static IsDictionary ( this type ) : bool
type this
Результат bool

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

public static IsInteger ( this type ) : bool
type this
Результат bool

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

public static IsList ( this type ) : bool
type this
Результат bool

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

public static IsNumber ( this type ) : bool
type this
Результат bool

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

public static IsReadable ( this mi ) : bool
mi this
Результат bool

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

public static IsStatic ( this mi ) : bool
mi this
Результат bool

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

public static Lerp ( this value, double min, double max, double window_rescaler = 1f ) : double
value this
min double
max double
window_rescaler double
Результат double

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

public static Lerp ( this value, float min, float max, float window_rescaler = 1f ) : float
value this
min float
max float
window_rescaler float
Результат float

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

public static MoveTowards ( this value, double target, double byvalue ) : double
value this
target double
byvalue double
Результат double

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

public static MoveTowards ( this value, float target, float byvalue ) : float
value this
target float
byvalue float
Результат float

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

public static NamePortable ( this assembly ) : string
assembly this
Результат string

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

public static Name_Portable ( this type ) : string
type this
Результат string

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

public static Rescale ( this value, double from_min, double from_max, double to_min, double to_max ) : double
value this
from_min double
from_max double
to_min double
to_max double
Результат double

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

public static Rescale ( this value, float from_min, float from_max, float to_min, float to_max ) : float
value this
from_min float
from_max float
to_min float
to_max float
Результат float

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

public static Saturate ( this value ) : double
value this
Результат double

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

public static Saturate ( this value ) : float
value this
Результат float

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

public static ToChar ( this value ) : char
value this
Результат char

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

public static ToStringEx ( this f ) : string
f this
Результат string

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

public static ToUnix ( this value ) : System.TimeSpan
value this
Результат System.TimeSpan

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

public static ToUnixMilli ( this value ) : ulong
value this
Результат ulong

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

public static isBetweenValues ( this value, int min, int max ) : bool
value this
min int
max int
Результат bool

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

public static isBetweenValues_NonInclusive ( this value, int min, int max ) : bool
value this
min int
max int
Результат bool

Описание свойств

UnixEpoch публичное статическое свойство

public static DateTime,System UnixEpoch
Результат System.DateTime