This relates to this bug: https://code.google.com/p/svg-edit/wiki/BrowserBugs#getBBox_on_paths_with_curves_includes_control_points
Given an arc (center, radius, startAngle, endAngle), I am able to calculate points along the path then their bounding box, however, in safari and chrome there is a bug that includes control points of the arc in the bounding box. Since gradient fills are applied to a shape's bounding box, this results in the gradient covering the shape slightly different depending on whether the browser has this bug or not.
My question is: without using the actual API (getBBox()) how can I mathematically calculate the extra control points of an arc in a path to adjust for the safari/chrome bug given these parameters (center, radius, startAngle, endAngle)?
This doesnt have to work with bezier curves or even ellipses, just a simple circular arc.
Thank You!