diff options
Diffstat (limited to 'src/core/SkGeometry.cpp')
-rw-r--r-- | src/core/SkGeometry.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/SkGeometry.cpp b/src/core/SkGeometry.cpp index 688445826d..14e4fa2bf7 100644 --- a/src/core/SkGeometry.cpp +++ b/src/core/SkGeometry.cpp @@ -1654,3 +1654,14 @@ void SkConic::computeTightBounds(SkRect* bounds) const { void SkConic::computeFastBounds(SkRect* bounds) const { bounds->set(fPts, 3); } + +/* + * "High order approximation of conic sections by quadratic splines" + * by Michael Floater, 1993 + * + * Max error between conic and simple quad is bounded by this equation + * + * a <-- w - 1 (where w >= 0) + * diff <-- a * (p0 - 2p1 + p2) / (4*(2 + a)) + */ + |