Méthode | 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 | |
Résultat | double |
public static Clamp ( this v, float min, float max ) : float | ||
v | this | |
min | float | |
max | float | |
Résultat | float |
public static Clamp ( this v, int min, int max ) : int | ||
v | this | |
min | int | |
max | int | |
Résultat | int |
public static ClampToByte ( this v ) : byte | ||
v | this | |
Résultat | byte |
public static Floor ( this value, double precision ) : double | ||
value | this | |
precision | double | |
Résultat | double |
public static Floor ( this value, int precision ) : int | ||
value | this | |
precision | int | |
Résultat | int |
public static Max ( System.TimeSpan a, System.TimeSpan b ) : System.TimeSpan | ||
a | System.TimeSpan | |
b | System.TimeSpan | |
Résultat | System.TimeSpan |
public static Pow ( this v, double p ) : double | ||
v | this | |
p | double | |
Résultat | double |
public static Pow ( this v, float p ) : float | ||
v | this | |
p | float | |
Résultat | float |
public static Random ( double maxValue ) : double | ||
maxValue | double | |
Résultat | double |
public static Random ( int maxValueExclusive ) : int | ||
maxValueExclusive | int | |
Résultat | int |
public static Random ( int minValueInclusive, int maxValueExclusive ) : int | ||
minValueInclusive | int | |
maxValueExclusive | int | |
Résultat | 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 |
Résultat | bool |
public static Round ( this value, double precision ) : double | ||
value | this | |
precision | double | |
Résultat | double |
public static Round ( this value, int precision ) : int | ||
value | this | |
precision | int | |
Résultat | int |
public static RoundToInt ( this value ) : int | ||
value | this | |
Résultat | int |
public static Saturate ( this value ) : double | ||
value | this | |
Résultat | double |
public static Saturate ( this value ) : float | ||
value | this | |
Résultat | float |
public static ToDoublePercentage ( this value ) : double | ||
value | this | |
Résultat | double |
public static ToIntPercentage ( this value ) : int | ||
value | this | |
Résultat | int |