|
| float | hmap::abs_smooth (float a, float mu) |
| | Smooth absolute value.
|
| |
| float | hmap::almost_unit_identity (float x) |
| | Almost unit identity function.
|
| |
| float | hmap::almost_unit_identity_c2 (float x) |
| | Almost unit identity function (C2 variant).
|
| |
| float | hmap::approx_hypot (float a, float b) |
| | Approximate hypotenuse.
|
| |
| float | hmap::approx_rsqrt (float a) |
| | Fast inverse square root approximation.
|
| |
| int | hmap::ceil_div (int a, int b) |
| | Integer ceiling division.
|
| |
| float | hmap::fast_exp (float x) |
| | Fast exponential approximation.
|
| |
| float | hmap::fast_log (float x) |
| | Fast natural logarithm approximation.
|
| |
| float | hmap::gain (float x, float factor) |
| | Gain curve remapping in [0,1].
|
| |
| int | hmap::highest_power_of_2 (int n) |
| | Highest power of 2 less than or equal to n.
|
| |
| float | hmap::lerp (float a, float b, float t) |
| | Linear interpolation.
|
| |
| float | hmap::power_curve (float x, float a, float b) |
| | Smooth asymmetric bell-shaped curve on [0,1].
|
| |
| float | hmap::sigmoid (float x, float width=1.f, float vmin=0.f, float vmax=1.f, float x0=0.f) |
| | Sigmoid function.
|
| |
| float | hmap::smoothstep3 (float x) |
| | Cubic smoothstep function.
|
| |
| float | hmap::smoothstep3_lower (float x) |
| | Cubic smoothstep (zero derivative at 0 only).
|
| |
| float | hmap::smoothstep3_upper (float x) |
| | Cubic smoothstep (zero derivative at 1 only).
|
| |
| float | hmap::smoothstep5 (float x) |
| | Quintic smoothstep function.
|
| |
| float | hmap::smoothstep5_lower (float x) |
| | Quintic smoothstep (zero derivative at 0 only).
|
| |
| float | hmap::smoothstep5_upper (float x) |
| | Quintic smoothstep (zero derivative at 1 only).
|
| |
| float | hmap::smoothstep7 (float x) |
| | Seventh-order smoothstep function.
|
| |
| float | hmap::threshold (float x, float x0, float x1) |
| | Linear threshold.
|
| |
| float | hmap::threshold_smooth (float x, float x0, float x1) |
| | Smooth threshold using smoothstep.
|
| |
| float | hmap::trapeze (float x, float x0, float x1, float width) |
| | Computes a trapezoidal pulse function.
|
| |
| float | hmap::trapeze_smooth (float x, float x0, float x1, float width) |
| | Smooth trapezoidal pulse using cubic smoothstep interpolation.
|
| |
| float | hmap::triangle (float x, float vmin, float vmax) |
| | Triangle function between bounds.
|
| |