C# Class Yodiwo.Extensions

Mostra file Open project: yodiwo/plegma

Public Properties

Property Type Description
UnixEpoch System.DateTime

Public Methods

Method 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 method

public static Abs ( this value ) : double
value this
return double

Abs() public static method

public static Abs ( this value ) : float
value this
return float

Abs() public static method

public static Abs ( this value ) : int
value this
return int

AlmostEqual() public static method

public static AlmostEqual ( this value, double testvalue, double error ) : bool
value this
testvalue double
error double
return bool

AlmostEqual() public static method

public static AlmostEqual ( this value, double testvalue, double lower_error, double upper_error ) : bool
value this
testvalue double
lower_error double
upper_error double
return bool

AlmostEqual() public static method

public static AlmostEqual ( this value, float testvalue, float error ) : bool
value this
testvalue float
error float
return bool

AlmostEqual() public static method

public static AlmostEqual ( this value, float testvalue, float lower_error, float upper_error ) : bool
value this
testvalue float
lower_error float
upper_error float
return bool

AlmostEqual() public static method

public static AlmostEqual ( this value, int test_value, int error ) : bool
value this
test_value int
error int
return bool

AlmostEqual() public static method

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
return bool

AlmostEqual_NonInclusive() public static method

public static AlmostEqual_NonInclusive ( this value, int test_value, int error ) : bool
value this
test_value int
error int
return bool

AlmostEqual_NonInclusive() public static method

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
return bool

AssemblyQualifiedName_Portable() public static method

public static AssemblyQualifiedName_Portable ( this type ) : string
type this
return string

Clamp() public static method

public static Clamp ( this value, double min, double max ) : double
value this
min double
max double
return double

Clamp() public static method

public static Clamp ( this value, float min, float max ) : float
value this
min float
max float
return float

Clamp() public static method

public static Clamp ( this value, int min, int max ) : int
value this
min int
max int
return int

ClampCeil() public static method

public static ClampCeil ( this value, double value2 ) : double
value this
value2 double
return double

ClampCeil() public static method

public static ClampCeil ( this value, float value2 ) : float
value this
value2 float
return float

ClampCeil() public static method

public static ClampCeil ( this value, int max ) : int
value this
max int
return int

ClampFloor() public static method

public static ClampFloor ( this value, double value2 ) : double
value this
value2 double
return double

ClampFloor() public static method

public static ClampFloor ( this value, float value2 ) : float
value this
value2 float
return float

ClampFloor() public static method

public static ClampFloor ( this value, int min ) : int
value this
min int
return int

CreateDelegate() public static method

public static CreateDelegate ( this mi, object Target ) : Delegate
mi this
Target object
return System.Delegate

DeFriendlifyName() public static method

public static DeFriendlifyName ( string type ) : string
type string
return string

FromUnix() public static method

public static FromUnix ( int value ) : System.DateTime
value int
return System.DateTime

FromUnixMilli() public static method

public static FromUnixMilli ( ulong value ) : System.DateTime
value ulong
return System.DateTime

GetEnumUnderlyingType() public static method

public static GetEnumUnderlyingType ( this enumType ) : Type
enumType this
return System.Type

GetFriendlyName() public static method

public static GetFriendlyName ( this type ) : string
type this
return string

GetIPAddress() public static method

public static GetIPAddress ( this endpoint ) : IPAddress
endpoint this
return IPAddress

GetMemberType() public static method

public static GetMemberType ( this mi ) : Type
mi this
return System.Type

GetPort() public static method

public static GetPort ( this endpoint ) : int
endpoint this
return int

HtmlDecodeObject() public static method

public static HtmlDecodeObject ( this obj ) : Object
obj this
return Object

HtmlEncodeObject() public static method

public static HtmlEncodeObject ( this obj ) : Object
obj this
return Object

InvertedClamp() public static method

public static InvertedClamp ( this value, double min, double max ) : double
value this
min double
max double
return double

InvertedClamp() public static method

public static InvertedClamp ( this value, float min, float max ) : float
value this
min float
max float
return float

IsDecimal() public static method

public static IsDecimal ( this type ) : bool
type this
return bool

IsDictionary() public static method

public static IsDictionary ( this type ) : bool
type this
return bool

IsInteger() public static method

public static IsInteger ( this type ) : bool
type this
return bool

IsList() public static method

public static IsList ( this type ) : bool
type this
return bool

IsNumber() public static method

public static IsNumber ( this type ) : bool
type this
return bool

IsReadable() public static method

public static IsReadable ( this mi ) : bool
mi this
return bool

IsStatic() public static method

public static IsStatic ( this mi ) : bool
mi this
return bool

Lerp() public static method

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

Lerp() public static method

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

MoveTowards() public static method

public static MoveTowards ( this value, double target, double byvalue ) : double
value this
target double
byvalue double
return double

MoveTowards() public static method

public static MoveTowards ( this value, float target, float byvalue ) : float
value this
target float
byvalue float
return float

NamePortable() public static method

public static NamePortable ( this assembly ) : string
assembly this
return string

Name_Portable() public static method

public static Name_Portable ( this type ) : string
type this
return string

Rescale() public static method

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
return double

Rescale() public static method

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
return float

Saturate() public static method

public static Saturate ( this value ) : double
value this
return double

Saturate() public static method

public static Saturate ( this value ) : float
value this
return float

ToChar() public static method

public static ToChar ( this value ) : char
value this
return char

ToStringEx() public static method

public static ToStringEx ( this f ) : string
f this
return string

ToUnix() public static method

public static ToUnix ( this value ) : System.TimeSpan
value this
return System.TimeSpan

ToUnixMilli() public static method

public static ToUnixMilli ( this value ) : ulong
value this
return ulong

isBetweenValues() public static method

public static isBetweenValues ( this value, int min, int max ) : bool
value this
min int
max int
return bool

isBetweenValues_NonInclusive() public static method

public static isBetweenValues_NonInclusive ( this value, int min, int max ) : bool
value this
min int
max int
return bool

Property Details

UnixEpoch public_oe static_oe property

public static DateTime,System UnixEpoch
return System.DateTime