public static float ApproachStep(float currentValue, float targetValue, float step) => (float)MathCommon.ApproachStep(currentValue, targetValue, step);
 public static float Wrap(int value, int min, int max) => (float)MathCommon.Wrap(value, min, max);
 public static float Clamp(float value, float min, float max) => (float)MathCommon.Clamp(value, min, max);
 public static float ApproachFactor(float currentValue, float targetValue, float factor, float roundWhen) => (float)MathCommon.ApproachFactor(currentValue, targetValue, factor, roundWhen);
Example #5
0
 public static int Clamp(int value, int min, int max) => (int)MathCommon.Clamp(value, min, max);
Example #6
0
 public static float ApproachStep(int currentValue, int targetValue, int step) => (int)MathCommon.ApproachStep(currentValue, targetValue, step);