Method | Description | |
---|---|---|
Abs ( this v ) : double | ||
Abs ( this v ) : float | ||
Acos ( this v ) : double | ||
Acos ( this v ) : float | ||
Clamp ( this v, double min, double max ) : double | ||
Clamp ( this v, float min, float max ) : float | ||
Clamp ( this v, int min, int max ) : int | ||
ClampToByte ( this v ) : byte | ||
Cos ( this v ) : double | ||
Cos ( this v ) : float | ||
Floor ( this value, double precision ) : double |
For example: Round(0.342, 0.05) → 0.30.
|
|
Floor ( this value, int precision ) : int |
For example: Round(340, 25) → 325.
|
|
IsFinite ( this v ) : bool | ||
Max ( System.TimeSpan a, System.TimeSpan b ) : System.TimeSpan | ||
Pow ( this v, double p ) : double | ||
Pow ( this v, float p ) : float | ||
Random ( ) : double | ||
Random ( double maxValue ) : double | ||
Random ( int maxValueExclusive ) : int | ||
Random ( int minValueInclusive, int maxValueExclusive ) : int | ||
RoughlyEquals ( this value, double origin ) : bool |
Checks if double is equal to another double considering another double’s precision. For example: RoughlyEquals(15.342, 15.34) → true; RoughlyEquals(15.34, 15.342) → false.
|
|
Round ( this value, double precision ) : double |
For example: Round(0.342, 0.05) → 0.35.
|
|
Round ( this value, int precision ) : int |
For example: Round(340, 25) → 350.
|
|
RoundToInt ( this value ) : int | ||
Saturate ( this value ) : double | ||
Saturate ( this value ) : float | ||
Sin ( this v ) : double | ||
Sin ( this v ) : float | ||
Sqrt ( this v ) : double | ||
Sqrt ( this v ) : float | ||
ToDoublePercentage ( this value ) : double | ||
ToIntPercentage ( this value ) : int |
public static Clamp ( this v, double min, double max ) : double | ||
v | this | |
min | double | |
max | double | |
return | double |
public static Clamp ( this v, float min, float max ) : float | ||
v | this | |
min | float | |
max | float | |
return | float |
public static Clamp ( this v, int min, int max ) : int | ||
v | this | |
min | int | |
max | int | |
return | int |
public static Floor ( this value, double precision ) : double | ||
value | this | |
precision | double | |
return | double |
public static Floor ( this value, int precision ) : int | ||
value | this | |
precision | int | |
return | int |
public static Max ( System.TimeSpan a, System.TimeSpan b ) : System.TimeSpan | ||
a | System.TimeSpan | |
b | System.TimeSpan | |
return | System.TimeSpan |
public static Pow ( this v, double p ) : double | ||
v | this | |
p | double | |
return | double |
public static Pow ( this v, float p ) : float | ||
v | this | |
p | float | |
return | float |
public static Random ( double maxValue ) : double | ||
maxValue | double | |
return | double |
public static Random ( int maxValueExclusive ) : int | ||
maxValueExclusive | int | |
return | int |
public static Random ( int minValueInclusive, int maxValueExclusive ) : int | ||
minValueInclusive | int | |
maxValueExclusive | int | |
return | int |
public static RoughlyEquals ( this value, double origin ) : bool | ||
value | this | Value which will be compared |
origin | double | Another value which will be compared and will define precision |
return | bool |
public static Round ( this value, double precision ) : double | ||
value | this | |
precision | double | |
return | double |
public static Round ( this value, int precision ) : int | ||
value | this | |
precision | int | |
return | int |
public static RoundToInt ( this value ) : int | ||
value | this | |
return | int |
public static Saturate ( this value ) : double | ||
value | this | |
return | double |
public static Saturate ( this value ) : float | ||
value | this | |
return | float |
public static ToDoublePercentage ( this value ) : double | ||
value | this | |
return | double |
public static ToIntPercentage ( this value ) : int | ||
value | this | |
return | int |