voidlabs / elycharts

Interactive Javascript (SVG|VML) Charting Library
http://elycharts.com
Other
10 stars 6 forks source link

Improved "rounding" algorythm #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I slightly changed the "method #2" to produce better curves.
--------------
    if (method == 2) {
      if ((a - Math.PI / 2)*(b - Math.PI / 2) > 0) {
          a = 0;
          b = 0;
      } else {
          if (Math.abs(a - Math.PI / 2) < Math.abs(b - Math.PI / 2))
              b = Math.PI - a;
          else
             a = Math.PI - b;
      }
    }

-------------------

Original issue reported on code.google.com by stefano....@gmail.com on 4 Oct 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Changed method in trunk

Original comment by eric.g...@gmail.com on 4 Oct 2010 at 5:46