Chromium Code Reviews| Index: include/core/SkGeometry.h |
| diff --git a/include/core/SkGeometry.h b/include/core/SkGeometry.h |
| index 38cdf6e9b358386fe467ce0383650a65b829decf..b23989ffb5293e34a1148eeaa57466ffac8758af 100644 |
| --- a/include/core/SkGeometry.h |
| +++ b/include/core/SkGeometry.h |
| @@ -72,6 +72,12 @@ int SkFindQuadExtrema(SkScalar a, SkScalar b, SkScalar c, SkScalar tValues[1]); |
| int SkChopQuadAtYExtrema(const SkPoint src[3], SkPoint dst[5]); |
| int SkChopQuadAtXExtrema(const SkPoint src[3], SkPoint dst[5]); |
| +/** Given 3 points on a quadratic bezier, if the point of maximum |
| + curvature exists on the segment, returns the t value for this |
| + point along the curve. Otherwise it will return a value of 0. |
| +*/ |
| +float SkGetTQuadAtMaxCurvature(const SkPoint src[3]); |
|
bsalomon
2013/07/10 15:14:36
It read don't right.
SkGetQuadTAtMaxCurvature?
Sk
reed1
2013/07/10 16:00:37
SkFindQuadMaxCurvature
|
| + |
| /** Given 3 points on a quadratic bezier, divide it into 2 quadratics |
| if the point of maximum curvature exists on the quad segment. |
| Depending on what is returned, dst[] is treated as follows |