Enhanced C#
Language of your choice: library documentation
Public static fields | Properties | Public Member Functions | List of all members
Loyc.Math.MathU16 Struct Reference

Implements IUIntMath<T> for numbers of type System.UInt16. More...


Source file:
Inheritance diagram for Loyc.Math.MathU16:
Loyc.Math.IUIntMath< ushort >

Remarks

Implements IUIntMath<T> for numbers of type System.UInt16.

Public static fields

static readonly MathU16 Value = new MathU16()
 

Properties

MinValue [get]
 
MaxValue [get]
 
Epsilon [get]
 
PositiveInfinity [get]
 
NegativeInfinity [get]
 
NaN [get]
 
bool IsSigned [get]
 
bool IsFloatingPoint [get]
 
bool IsInteger [get]
 
bool IsOrdered [get]
 
int SignificantBits [get]
 
int MaxIntPowerOf2 [get]
 
ulong MaxInt [get]
 
long MinInt [get]
 
Zero [get]
 
One [get]
 

Public Member Functions

bool IsInfinity (T value)
 
bool IsNaN (T value)
 
Floor (T a)
 
Ceiling (T a)
 
From (uint t)
 
From (int t)
 
From (ulong t)
 
From (long t)
 
From (double t)
 
Clip (uint t)
 
Clip (ulong t)
 
Clip (int t)
 
Clip (long t)
 
Clip (double t)
 
bool IsLess (T a, T b)
 
bool IsLessOrEqual (T a, T b)
 
Abs (T a)
 
Max (T a, T b)
 
Min (T a, T b)
 
int Compare (T x, T y)
 
bool Equals (T x, T y)
 
int GetHashCode (T x)
 
AddOne (T a)
 
SubOne (T a)
 
NextHigher (T a)
 
NextLower (T a)
 
Add (T a, T b)
 
Add (T a, T b, T c)
 
Sub (T a, T b)
 
Mul (T a, T b)
 
Div (T a, T b)
 
MulDiv (T a, T mul, T div)
 
Shl (T a, int amount)
 
Shr (T a, int amount)
 
Sqrt (T a)
 
Square (T a)
 
And (T a, T b)
 
Or (T a, T b)
 
Xor (T a, T b)
 
Not (T a)
 
int CountOnes (T a)
 
int Log2Floor (T a)