Added smoothStep

This commit is contained in:
jsrobson10 2020-06-26 15:11:59 +10:00
parent 198294afcd
commit 14f6927357
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}