C# Class Source.Extensions.NumericalExtensions

显示文件 Open project: mrange/T4Include

Public Methods

Method Description
Clamp ( this value, Byte inclusiveMin, Byte inclusiveMax ) : Byte
Clamp ( this value, Char inclusiveMin, Char inclusiveMax ) : Char
Clamp ( this value, System.DateTime inclusiveMin, System.DateTime inclusiveMax ) : System.DateTime
Clamp ( this value, Decimal inclusiveMin, Decimal inclusiveMax ) : Decimal
Clamp ( this value, Double inclusiveMin, Double inclusiveMax ) : Double
Clamp ( this value, Int16 inclusiveMin, Int16 inclusiveMax ) : Int16
Clamp ( this value, Int32 inclusiveMin, Int32 inclusiveMax ) : Int32
Clamp ( this value, System.Int64 inclusiveMin, System.Int64 inclusiveMax ) : System.Int64
Clamp ( this value, SByte inclusiveMin, SByte inclusiveMax ) : SByte
Clamp ( this value, System.Single inclusiveMin, System.Single inclusiveMax ) : System.Single
Clamp ( this value, System.TimeSpan inclusiveMin, System.TimeSpan inclusiveMax ) : System.TimeSpan
Clamp ( this value, UInt16 inclusiveMin, UInt16 inclusiveMax ) : UInt16
Clamp ( this value, UInt32 inclusiveMin, UInt32 inclusiveMax ) : UInt32
Clamp ( this value, System.UInt64 inclusiveMin, System.UInt64 inclusiveMax ) : System.UInt64
IsAllOff ( this value, Byte test ) : bool
IsAllOff ( this value, Char test ) : bool
IsAllOff ( this value, Int16 test ) : bool
IsAllOff ( this value, Int32 test ) : bool
IsAllOff ( this value, System.Int64 test ) : bool
IsAllOff ( this value, SByte test ) : bool
IsAllOff ( this value, UInt16 test ) : bool
IsAllOff ( this value, UInt32 test ) : bool
IsAllOff ( this value, System.UInt64 test ) : bool
IsAllOn ( this value, Byte test ) : bool
IsAllOn ( this value, Char test ) : bool
IsAllOn ( this value, Int16 test ) : bool
IsAllOn ( this value, Int32 test ) : bool
IsAllOn ( this value, System.Int64 test ) : bool
IsAllOn ( this value, SByte test ) : bool
IsAllOn ( this value, UInt16 test ) : bool
IsAllOn ( this value, UInt32 test ) : bool
IsAllOn ( this value, System.UInt64 test ) : bool
IsAnyOff ( this value, Byte test ) : bool
IsAnyOff ( this value, Char test ) : bool
IsAnyOff ( this value, Int16 test ) : bool
IsAnyOff ( this value, Int32 test ) : bool
IsAnyOff ( this value, System.Int64 test ) : bool
IsAnyOff ( this value, SByte test ) : bool
IsAnyOff ( this value, UInt16 test ) : bool
IsAnyOff ( this value, UInt32 test ) : bool
IsAnyOff ( this value, UInt64 test ) : bool
IsAnyOn ( this value, Byte test ) : bool
IsAnyOn ( this value, Char test ) : bool
IsAnyOn ( this value, Int16 test ) : bool
IsAnyOn ( this value, Int32 test ) : bool
IsAnyOn ( this value, Int64 test ) : bool
IsAnyOn ( this value, SByte test ) : bool
IsAnyOn ( this value, UInt16 test ) : bool
IsAnyOn ( this value, UInt32 test ) : bool
IsAnyOn ( this value, UInt64 test ) : bool
IsBetween ( this value, Byte inclusiveMin, Byte inclusiveMax ) : bool
IsBetween ( this value, Char inclusiveMin, Char inclusiveMax ) : bool
IsBetween ( this value, DateTime inclusiveMin, DateTime inclusiveMax ) : bool
IsBetween ( this value, Decimal inclusiveMin, Decimal inclusiveMax ) : bool
IsBetween ( this value, Double inclusiveMin, Double inclusiveMax ) : bool
IsBetween ( this value, Int16 inclusiveMin, Int16 inclusiveMax ) : bool
IsBetween ( this value, Int32 inclusiveMin, Int32 inclusiveMax ) : bool
IsBetween ( this value, Int64 inclusiveMin, Int64 inclusiveMax ) : bool
IsBetween ( this value, SByte inclusiveMin, SByte inclusiveMax ) : bool
IsBetween ( this value, Single inclusiveMin, Single inclusiveMax ) : bool
IsBetween ( this value, TimeSpan inclusiveMin, TimeSpan inclusiveMax ) : bool
IsBetween ( this value, UInt16 inclusiveMin, UInt16 inclusiveMax ) : bool
IsBetween ( this value, UInt32 inclusiveMin, UInt32 inclusiveMax ) : bool
IsBetween ( this value, UInt64 inclusiveMin, UInt64 inclusiveMax ) : bool
Lerp ( this t, Decimal from, Decimal to ) : Decimal
Lerp ( this t, Double from, Double to ) : Double
Lerp ( this t, Single from, Single to ) : Single
Max ( this left, Byte right ) : Byte
Max ( this left, Char right ) : Char
Max ( this left, DateTime right ) : DateTime
Max ( this left, Decimal right ) : Decimal
Max ( this left, Double right ) : Double
Max ( this left, Int16 right ) : Int16
Max ( this left, Int32 right ) : Int32
Max ( this left, Int64 right ) : Int64
Max ( this left, SByte right ) : SByte
Max ( this left, Single right ) : Single
Max ( this left, TimeSpan right ) : TimeSpan
Max ( this left, UInt16 right ) : UInt16
Max ( this left, UInt32 right ) : UInt32
Max ( this left, UInt64 right ) : UInt64
Min ( this left, Byte right ) : Byte
Min ( this left, Char right ) : Char
Min ( this left, DateTime right ) : DateTime
Min ( this left, Decimal right ) : Decimal
Min ( this left, Double right ) : Double
Min ( this left, Int16 right ) : Int16
Min ( this left, Int32 right ) : Int32
Min ( this left, Int64 right ) : Int64
Min ( this left, SByte right ) : SByte
Min ( this left, Single right ) : Single
Min ( this left, TimeSpan right ) : TimeSpan
Min ( this left, UInt16 right ) : UInt16
Min ( this left, UInt32 right ) : UInt32
Min ( this left, UInt64 right ) : UInt64

Method Details

Clamp() public static method

public static Clamp ( this value, Byte inclusiveMin, Byte inclusiveMax ) : Byte
value this
inclusiveMin Byte
inclusiveMax Byte
return Byte

Clamp() public static method

public static Clamp ( this value, Char inclusiveMin, Char inclusiveMax ) : Char
value this
inclusiveMin Char
inclusiveMax Char
return Char

Clamp() public static method

public static Clamp ( this value, System.DateTime inclusiveMin, System.DateTime inclusiveMax ) : System.DateTime
value this
inclusiveMin System.DateTime
inclusiveMax System.DateTime
return System.DateTime

Clamp() public static method

public static Clamp ( this value, Decimal inclusiveMin, Decimal inclusiveMax ) : Decimal
value this
inclusiveMin Decimal
inclusiveMax Decimal
return Decimal

Clamp() public static method

public static Clamp ( this value, Double inclusiveMin, Double inclusiveMax ) : Double
value this
inclusiveMin Double
inclusiveMax Double
return Double

Clamp() public static method

public static Clamp ( this value, Int16 inclusiveMin, Int16 inclusiveMax ) : Int16
value this
inclusiveMin System.Int16
inclusiveMax System.Int16
return System.Int16

Clamp() public static method

public static Clamp ( this value, Int32 inclusiveMin, Int32 inclusiveMax ) : Int32
value this
inclusiveMin System.Int32
inclusiveMax System.Int32
return System.Int32

Clamp() public static method

public static Clamp ( this value, System.Int64 inclusiveMin, System.Int64 inclusiveMax ) : System.Int64
value this
inclusiveMin System.Int64
inclusiveMax System.Int64
return System.Int64

Clamp() public static method

public static Clamp ( this value, SByte inclusiveMin, SByte inclusiveMax ) : SByte
value this
inclusiveMin SByte
inclusiveMax SByte
return SByte

Clamp() public static method

public static Clamp ( this value, System.Single inclusiveMin, System.Single inclusiveMax ) : System.Single
value this
inclusiveMin System.Single
inclusiveMax System.Single
return System.Single

Clamp() public static method

public static Clamp ( this value, System.TimeSpan inclusiveMin, System.TimeSpan inclusiveMax ) : System.TimeSpan
value this
inclusiveMin System.TimeSpan
inclusiveMax System.TimeSpan
return System.TimeSpan

Clamp() public static method

public static Clamp ( this value, UInt16 inclusiveMin, UInt16 inclusiveMax ) : UInt16
value this
inclusiveMin System.UInt16
inclusiveMax System.UInt16
return System.UInt16

Clamp() public static method

public static Clamp ( this value, UInt32 inclusiveMin, UInt32 inclusiveMax ) : UInt32
value this
inclusiveMin System.UInt32
inclusiveMax System.UInt32
return System.UInt32

Clamp() public static method

public static Clamp ( this value, System.UInt64 inclusiveMin, System.UInt64 inclusiveMax ) : System.UInt64
value this
inclusiveMin System.UInt64
inclusiveMax System.UInt64
return System.UInt64

IsAllOff() public static method

public static IsAllOff ( this value, Byte test ) : bool
value this
test Byte
return bool

IsAllOff() public static method

public static IsAllOff ( this value, Char test ) : bool
value this
test Char
return bool

IsAllOff() public static method

public static IsAllOff ( this value, Int16 test ) : bool
value this
test System.Int16
return bool

IsAllOff() public static method

public static IsAllOff ( this value, Int32 test ) : bool
value this
test System.Int32
return bool

IsAllOff() public static method

public static IsAllOff ( this value, System.Int64 test ) : bool
value this
test System.Int64
return bool

IsAllOff() public static method

public static IsAllOff ( this value, SByte test ) : bool
value this
test SByte
return bool

IsAllOff() public static method

public static IsAllOff ( this value, UInt16 test ) : bool
value this
test System.UInt16
return bool

IsAllOff() public static method

public static IsAllOff ( this value, UInt32 test ) : bool
value this
test System.UInt32
return bool

IsAllOff() public static method

public static IsAllOff ( this value, System.UInt64 test ) : bool
value this
test System.UInt64
return bool

IsAllOn() public static method

public static IsAllOn ( this value, Byte test ) : bool
value this
test Byte
return bool

IsAllOn() public static method

public static IsAllOn ( this value, Char test ) : bool
value this
test Char
return bool

IsAllOn() public static method

public static IsAllOn ( this value, Int16 test ) : bool
value this
test System.Int16
return bool

IsAllOn() public static method

public static IsAllOn ( this value, Int32 test ) : bool
value this
test System.Int32
return bool

IsAllOn() public static method

public static IsAllOn ( this value, System.Int64 test ) : bool
value this
test System.Int64
return bool

IsAllOn() public static method

public static IsAllOn ( this value, SByte test ) : bool
value this
test SByte
return bool

IsAllOn() public static method

public static IsAllOn ( this value, UInt16 test ) : bool
value this
test System.UInt16
return bool

IsAllOn() public static method

public static IsAllOn ( this value, UInt32 test ) : bool
value this
test System.UInt32
return bool

IsAllOn() public static method

public static IsAllOn ( this value, System.UInt64 test ) : bool
value this
test System.UInt64
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, Byte test ) : bool
value this
test Byte
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, Char test ) : bool
value this
test Char
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, Int16 test ) : bool
value this
test System.Int16
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, Int32 test ) : bool
value this
test System.Int32
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, System.Int64 test ) : bool
value this
test System.Int64
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, SByte test ) : bool
value this
test SByte
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, UInt16 test ) : bool
value this
test System.UInt16
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, UInt32 test ) : bool
value this
test System.UInt32
return bool

IsAnyOff() public static method

public static IsAnyOff ( this value, UInt64 test ) : bool
value this
test UInt64
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, Byte test ) : bool
value this
test Byte
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, Char test ) : bool
value this
test Char
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, Int16 test ) : bool
value this
test Int16
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, Int32 test ) : bool
value this
test Int32
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, Int64 test ) : bool
value this
test Int64
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, SByte test ) : bool
value this
test SByte
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, UInt16 test ) : bool
value this
test UInt16
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, UInt32 test ) : bool
value this
test UInt32
return bool

IsAnyOn() public static method

public static IsAnyOn ( this value, UInt64 test ) : bool
value this
test UInt64
return bool

IsBetween() public static method

public static IsBetween ( this value, Byte inclusiveMin, Byte inclusiveMax ) : bool
value this
inclusiveMin Byte
inclusiveMax Byte
return bool

IsBetween() public static method

public static IsBetween ( this value, Char inclusiveMin, Char inclusiveMax ) : bool
value this
inclusiveMin Char
inclusiveMax Char
return bool

IsBetween() public static method

public static IsBetween ( this value, DateTime inclusiveMin, DateTime inclusiveMax ) : bool
value this
inclusiveMin DateTime
inclusiveMax DateTime
return bool

IsBetween() public static method

public static IsBetween ( this value, Decimal inclusiveMin, Decimal inclusiveMax ) : bool
value this
inclusiveMin Decimal
inclusiveMax Decimal
return bool

IsBetween() public static method

public static IsBetween ( this value, Double inclusiveMin, Double inclusiveMax ) : bool
value this
inclusiveMin Double
inclusiveMax Double
return bool

IsBetween() public static method

public static IsBetween ( this value, Int16 inclusiveMin, Int16 inclusiveMax ) : bool
value this
inclusiveMin Int16
inclusiveMax Int16
return bool

IsBetween() public static method

public static IsBetween ( this value, Int32 inclusiveMin, Int32 inclusiveMax ) : bool
value this
inclusiveMin Int32
inclusiveMax Int32
return bool

IsBetween() public static method

public static IsBetween ( this value, Int64 inclusiveMin, Int64 inclusiveMax ) : bool
value this
inclusiveMin Int64
inclusiveMax Int64
return bool

IsBetween() public static method

public static IsBetween ( this value, SByte inclusiveMin, SByte inclusiveMax ) : bool
value this
inclusiveMin SByte
inclusiveMax SByte
return bool

IsBetween() public static method

public static IsBetween ( this value, Single inclusiveMin, Single inclusiveMax ) : bool
value this
inclusiveMin Single
inclusiveMax Single
return bool

IsBetween() public static method

public static IsBetween ( this value, TimeSpan inclusiveMin, TimeSpan inclusiveMax ) : bool
value this
inclusiveMin TimeSpan
inclusiveMax TimeSpan
return bool

IsBetween() public static method

public static IsBetween ( this value, UInt16 inclusiveMin, UInt16 inclusiveMax ) : bool
value this
inclusiveMin UInt16
inclusiveMax UInt16
return bool

IsBetween() public static method

public static IsBetween ( this value, UInt32 inclusiveMin, UInt32 inclusiveMax ) : bool
value this
inclusiveMin UInt32
inclusiveMax UInt32
return bool

IsBetween() public static method

public static IsBetween ( this value, UInt64 inclusiveMin, UInt64 inclusiveMax ) : bool
value this
inclusiveMin UInt64
inclusiveMax UInt64
return bool

Lerp() public static method

public static Lerp ( this t, Decimal from, Decimal to ) : Decimal
t this
from Decimal
to Decimal
return Decimal

Lerp() public static method

public static Lerp ( this t, Double from, Double to ) : Double
t this
from Double
to Double
return Double

Lerp() public static method

public static Lerp ( this t, Single from, Single to ) : Single
t this
from Single
to Single
return Single

Max() public static method

public static Max ( this left, Byte right ) : Byte
left this
right Byte
return Byte

Max() public static method

public static Max ( this left, Char right ) : Char
left this
right Char
return Char

Max() public static method

public static Max ( this left, DateTime right ) : DateTime
left this
right DateTime
return DateTime

Max() public static method

public static Max ( this left, Decimal right ) : Decimal
left this
right Decimal
return Decimal

Max() public static method

public static Max ( this left, Double right ) : Double
left this
right Double
return Double

Max() public static method

public static Max ( this left, Int16 right ) : Int16
left this
right Int16
return Int16

Max() public static method

public static Max ( this left, Int32 right ) : Int32
left this
right Int32
return Int32

Max() public static method

public static Max ( this left, Int64 right ) : Int64
left this
right Int64
return Int64

Max() public static method

public static Max ( this left, SByte right ) : SByte
left this
right SByte
return SByte

Max() public static method

public static Max ( this left, Single right ) : Single
left this
right Single
return Single

Max() public static method

public static Max ( this left, TimeSpan right ) : TimeSpan
left this
right TimeSpan
return TimeSpan

Max() public static method

public static Max ( this left, UInt16 right ) : UInt16
left this
right UInt16
return UInt16

Max() public static method

public static Max ( this left, UInt32 right ) : UInt32
left this
right UInt32
return UInt32

Max() public static method

public static Max ( this left, UInt64 right ) : UInt64
left this
right UInt64
return UInt64

Min() public static method

public static Min ( this left, Byte right ) : Byte
left this
right Byte
return Byte

Min() public static method

public static Min ( this left, Char right ) : Char
left this
right Char
return Char

Min() public static method

public static Min ( this left, DateTime right ) : DateTime
left this
right DateTime
return DateTime

Min() public static method

public static Min ( this left, Decimal right ) : Decimal
left this
right Decimal
return Decimal

Min() public static method

public static Min ( this left, Double right ) : Double
left this
right Double
return Double

Min() public static method

public static Min ( this left, Int16 right ) : Int16
left this
right Int16
return Int16

Min() public static method

public static Min ( this left, Int32 right ) : Int32
left this
right Int32
return Int32

Min() public static method

public static Min ( this left, Int64 right ) : Int64
left this
right Int64
return Int64

Min() public static method

public static Min ( this left, SByte right ) : SByte
left this
right SByte
return SByte

Min() public static method

public static Min ( this left, Single right ) : Single
left this
right Single
return Single

Min() public static method

public static Min ( this left, TimeSpan right ) : TimeSpan
left this
right TimeSpan
return TimeSpan

Min() public static method

public static Min ( this left, UInt16 right ) : UInt16
left this
right UInt16
return UInt16

Min() public static method

public static Min ( this left, UInt32 right ) : UInt32
left this
right UInt32
return UInt32

Min() public static method

public static Min ( this left, UInt64 right ) : UInt64
left this
right UInt64
return UInt64