| 799 | } |
| 800 | |
| 801 | static void quadricFromPlane(Quadric& Q, float a, float b, float c, float d, float w) |
| 802 | { |
| 803 | float aw = a * w; |
| 804 | float bw = b * w; |
| 805 | float cw = c * w; |
| 806 | float dw = d * w; |
| 807 | |
| 808 | Q.a00 = a * aw; |
| 809 | Q.a11 = b * bw; |
| 810 | Q.a22 = c * cw; |
| 811 | Q.a10 = a * bw; |
| 812 | Q.a20 = a * cw; |
| 813 | Q.a21 = b * cw; |
| 814 | Q.b0 = a * dw; |
| 815 | Q.b1 = b * dw; |
| 816 | Q.b2 = c * dw; |
| 817 | Q.c = d * dw; |
| 818 | Q.w = w; |
| 819 | } |
| 820 | |
| 821 | static void quadricFromPoint(Quadric& Q, float x, float y, float z, float w) |
| 822 | { |
no outgoing calls
no test coverage detected