Package com.jackmeng.stl
Class stl_Maths
java.lang.Object
com.jackmeng.stl.stl_Maths
public final class stl_Maths
extends java.lang.Object
- 
Constructor SummaryConstructors Modifier Constructor Description privatestl_Maths()
- 
Method SummaryModifier and Type Method Description static intbinomial_coefficient(int n, int k)static intclamp(int value, int min, int max)static doubleclamp_with_epsilon(double value, double min, double max, double epsilon)static doubleexponential_clamp(double value, double min, double max, double exponent)static doublesmoothstep_Clamp(double value, double min, double max, double smoothness)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
stl_Mathsprivate stl_Maths()
 
- 
- 
Method Details- 
binomial_coefficientpublic static int binomial_coefficient(int n, int k)
- 
clamp_with_epsilonpublic static double clamp_with_epsilon(double value, double min, double max, double epsilon)
- 
exponential_clamppublic static double exponential_clamp(double value, double min, double max, double exponent)
- 
smoothstep_Clamppublic static double smoothstep_Clamp(double value, double min, double max, double smoothness)
- 
clamppublic static int clamp(int value, int min, int max)
 
-