C# Class Yodiwo.Extensions

Afficher le fichier Open project: yodiwo/plegma

Méthodes publiques

Свойство Type Description
UnixEpoch System.DateTime

Méthodes publiques

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

Method Details

Abs() public static méthode

public static Abs ( this value ) : double
value this
Résultat double

Abs() public static méthode

public static Abs ( this value ) : float
value this
Résultat float

Abs() public static méthode

public static Abs ( this value ) : int
value this
Résultat int

AlmostEqual() public static méthode

public static AlmostEqual ( this value, double testvalue, double error ) : bool
value this
testvalue double
error double
Résultat bool

AlmostEqual() public static méthode

public static AlmostEqual ( this value, double testvalue, double lower_error, double upper_error ) : bool
value this
testvalue double
lower_error double
upper_error double
Résultat bool

AlmostEqual() public static méthode

public static AlmostEqual ( this value, float testvalue, float error ) : bool
value this
testvalue float
error float
Résultat bool

AlmostEqual() public static méthode

public static AlmostEqual ( this value, float testvalue, float lower_error, float upper_error ) : bool
value this
testvalue float
lower_error float
upper_error float
Résultat bool

AlmostEqual() public static méthode

public static AlmostEqual ( this value, int test_value, int error ) : bool
value this
test_value int
error int
Résultat bool

AlmostEqual() public static méthode

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
Résultat bool

AlmostEqual_NonInclusive() public static méthode

public static AlmostEqual_NonInclusive ( this value, int test_value, int error ) : bool
value this
test_value int
error int
Résultat bool

AlmostEqual_NonInclusive() public static méthode

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
Résultat bool

AssemblyQualifiedName_Portable() public static méthode

public static AssemblyQualifiedName_Portable ( this type ) : string
type this
Résultat string

Clamp() public static méthode

public static Clamp ( this value, double min, double max ) : double
value this
min double
max double
Résultat double

Clamp() public static méthode

public static Clamp ( this value, float min, float max ) : float
value this
min float
max float
Résultat float

Clamp() public static méthode

public static Clamp ( this value, int min, int max ) : int
value this
min int
max int
Résultat int

ClampCeil() public static méthode

public static ClampCeil ( this value, double value2 ) : double
value this
value2 double
Résultat double

ClampCeil() public static méthode

public static ClampCeil ( this value, float value2 ) : float
value this
value2 float
Résultat float

ClampCeil() public static méthode

public static ClampCeil ( this value, int max ) : int
value this
max int
Résultat int

ClampFloor() public static méthode

public static ClampFloor ( this value, double value2 ) : double
value this
value2 double
Résultat double

ClampFloor() public static méthode

public static ClampFloor ( this value, float value2 ) : float
value this
value2 float
Résultat float

ClampFloor() public static méthode

public static ClampFloor ( this value, int min ) : int
value this
min int
Résultat int

CreateDelegate() public static méthode

public static CreateDelegate ( this mi, object Target ) : Delegate
mi this
Target object
Résultat System.Delegate

DeFriendlifyName() public static méthode

public static DeFriendlifyName ( string type ) : string
type string
Résultat string

FromUnix() public static méthode

public static FromUnix ( int value ) : System.DateTime
value int
Résultat System.DateTime

FromUnixMilli() public static méthode

public static FromUnixMilli ( ulong value ) : System.DateTime
value ulong
Résultat System.DateTime

GetEnumUnderlyingType() public static méthode

public static GetEnumUnderlyingType ( this enumType ) : Type
enumType this
Résultat System.Type

GetFriendlyName() public static méthode

public static GetFriendlyName ( this type ) : string
type this
Résultat string

GetIPAddress() public static méthode

public static GetIPAddress ( this endpoint ) : IPAddress
endpoint this
Résultat IPAddress

GetMemberType() public static méthode

public static GetMemberType ( this mi ) : Type
mi this
Résultat System.Type

GetPort() public static méthode

public static GetPort ( this endpoint ) : int
endpoint this
Résultat int

HtmlDecodeObject() public static méthode

public static HtmlDecodeObject ( this obj ) : Object
obj this
Résultat Object

HtmlEncodeObject() public static méthode

public static HtmlEncodeObject ( this obj ) : Object
obj this
Résultat Object

InvertedClamp() public static méthode

public static InvertedClamp ( this value, double min, double max ) : double
value this
min double
max double
Résultat double

InvertedClamp() public static méthode

public static InvertedClamp ( this value, float min, float max ) : float
value this
min float
max float
Résultat float

IsDecimal() public static méthode

public static IsDecimal ( this type ) : bool
type this
Résultat bool

IsDictionary() public static méthode

public static IsDictionary ( this type ) : bool
type this
Résultat bool

IsInteger() public static méthode

public static IsInteger ( this type ) : bool
type this
Résultat bool

IsList() public static méthode

public static IsList ( this type ) : bool
type this
Résultat bool

IsNumber() public static méthode

public static IsNumber ( this type ) : bool
type this
Résultat bool

IsReadable() public static méthode

public static IsReadable ( this mi ) : bool
mi this
Résultat bool

IsStatic() public static méthode

public static IsStatic ( this mi ) : bool
mi this
Résultat bool

Lerp() public static méthode

public static Lerp ( this value, double min, double max, double window_rescaler = 1f ) : double
value this
min double
max double
window_rescaler double
Résultat double

Lerp() public static méthode

public static Lerp ( this value, float min, float max, float window_rescaler = 1f ) : float
value this
min float
max float
window_rescaler float
Résultat float

MoveTowards() public static méthode

public static MoveTowards ( this value, double target, double byvalue ) : double
value this
target double
byvalue double
Résultat double

MoveTowards() public static méthode

public static MoveTowards ( this value, float target, float byvalue ) : float
value this
target float
byvalue float
Résultat float

NamePortable() public static méthode

public static NamePortable ( this assembly ) : string
assembly this
Résultat string

Name_Portable() public static méthode

public static Name_Portable ( this type ) : string
type this
Résultat string

Rescale() public static méthode

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
Résultat double

Rescale() public static méthode

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
Résultat float

Saturate() public static méthode

public static Saturate ( this value ) : double
value this
Résultat double

Saturate() public static méthode

public static Saturate ( this value ) : float
value this
Résultat float

ToChar() public static méthode

public static ToChar ( this value ) : char
value this
Résultat char

ToStringEx() public static méthode

public static ToStringEx ( this f ) : string
f this
Résultat string

ToUnix() public static méthode

public static ToUnix ( this value ) : System.TimeSpan
value this
Résultat System.TimeSpan

ToUnixMilli() public static méthode

public static ToUnixMilli ( this value ) : ulong
value this
Résultat ulong

isBetweenValues() public static méthode

public static isBetweenValues ( this value, int min, int max ) : bool
value this
min int
max int
Résultat bool

isBetweenValues_NonInclusive() public static méthode

public static isBetweenValues_NonInclusive ( this value, int min, int max ) : bool
value this
min int
max int
Résultat bool

Property Details

UnixEpoch public_oe static_oe property

public static DateTime,System UnixEpoch
Résultat System.DateTime