aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-21 19:49:10 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-21 19:49:10 +0000
commitdef6468dd2daed36eced69098445aa99c90487d6 (patch)
treeb3179432d1c09bedaead85474686444bac175caa /include
parentb9882763628bb0f6f14cd05af2d2b435d88e44b2 (diff)
Stub for conic section max curvature
BUG=skia: R=reed@google.com Author: humper@google.com Review URL: https://codereview.chromium.org/175193003 git-svn-id: http://skia.googlecode.com/svn/trunk@13542 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkGeometry.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/core/SkGeometry.h b/include/core/SkGeometry.h
index d7836db735..119cfc68db 100644
--- a/include/core/SkGeometry.h
+++ b/include/core/SkGeometry.h
@@ -255,6 +255,15 @@ struct SkConic {
void computeTightBounds(SkRect* bounds) const;
void computeFastBounds(SkRect* bounds) const;
+
+ /** Find the parameter value where the conic takes on its maximum curvature.
+ *
+ * @param t output scalar for max curvature. Will be unchanged if
+ * max curvature outside 0..1 range.
+ *
+ * @return true if max curvature found inside 0..1 range, false otherwise
+ */
+ bool findMaxCurvature(SkScalar* t) const;
};
#include "SkTemplates.h"