(a, halfAngle, r, ring)
| 834 | } |
| 835 | |
| 836 | function calcMaxHalfSize(a, halfAngle, r, ring) { |
| 837 | var q = a + 1 / (2 * Math.tan(halfAngle)); |
| 838 | return r * Math.min(1 / (Math.sqrt(q * q + 0.5) + q), ring / (Math.sqrt(a * a + ring / 2) + a)); |
| 839 | } |
| 840 | |
| 841 | function getInscribedRadiusFraction(pt, cd0) { |
| 842 | if (pt.v === cd0.vTotal && !cd0.trace.hole) return 1; // special case of 100% with no hole |
no outgoing calls
no test coverage detected
searching dependent graphs…