| 700 | }; |
| 701 | |
| 702 | static float normalize(Vector3& v) |
| 703 | { |
| 704 | float length = sqrtf(v.x * v.x + v.y * v.y + v.z * v.z); |
| 705 | |
| 706 | if (length > 0) |
| 707 | { |
| 708 | v.x /= length; |
| 709 | v.y /= length; |
| 710 | v.z /= length; |
| 711 | } |
| 712 | |
| 713 | return length; |
| 714 | } |
| 715 | |
| 716 | static void quadricAdd(Quadric& Q, const Quadric& R) |
| 717 | { |
no outgoing calls
no test coverage detected