Added smoothStep
This commit is contained in:
parent
198294afcd
commit
14f6927357
|
|
@ -72,6 +72,10 @@ public class MathHelpers
|
|||
return Double.NaN;
|
||||
}
|
||||
|
||||
public static double smoothStep(double a) {
|
||||
return a * a * (3 + 2 * a);
|
||||
}
|
||||
|
||||
public static double sqrt(double a) {
|
||||
return Math.sqrt(a);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue