QcTerrainMath Namespace
Small interpolation helpers of the terrain generator, inline so they stay in the hot loops. More...
| Header: | #include <worldgen/terrain/QcTerrainMath.h> |
Functions
| double | smoothstep(double edge0, double edge1, double x) |
Detailed Description
Function Documentation
double QcTerrainMath::smoothstep(double edge0, double edge1, double x)
Returns the smoothstep of x between edge0 and edge1: 0 at or below edge0, 1 at or above edge1, a cubic Hermite curve between.