| 43 | } |
| 44 | |
| 45 | void stClampVecMin(TVec3f &vec, float clampval) |
| 46 | { |
| 47 | if (vec.length() < clampval) |
| 48 | { |
| 49 | stVecNormalize(vec); |
| 50 | vec.scale((float)clampval); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // might use JMAFastSqrt instead, who knows |
| 55 | float stspeedy_sqrtf(register float x) |
nothing calls this directly
no test coverage detected