| 13 | } |
| 14 | |
| 15 | float clamp(float x, float lowerlimit, float upperlimit) |
| 16 | { |
| 17 | if (x < lowerlimit) |
| 18 | x = lowerlimit; |
| 19 | if (x > upperlimit) |
| 20 | x = upperlimit; |
| 21 | return x; |
| 22 | } |
| 23 | |
| 24 | float smoothInterpolation(float bottomLeft, float topLeft, float bottomRight, |
| 25 | float topRight, float xMin, float xMax, float zMin, |
no outgoing calls
no test coverage detected