| 143 | } |
| 144 | |
| 145 | float SanitizeFloat(float f) |
| 146 | { |
| 147 | if (f == -std::numeric_limits<float>::infinity()) |
| 148 | { |
| 149 | return -std::numeric_limits<float>::max(); |
| 150 | } |
| 151 | else if (f == std::numeric_limits<float>::infinity()) |
| 152 | { |
| 153 | return std::numeric_limits<float>::max(); |
| 154 | } |
| 155 | else if (IsNan(f)) |
| 156 | { |
| 157 | return 0.0f; |
| 158 | } |
| 159 | return f; |
| 160 | } |
| 161 | |
| 162 | template<typename T> |
| 163 | bool IsM44Identity(const T * m44) |
no test coverage detected