diff options
author | Dr.Smile <vabnick@gmail.com> | 2017-09-17 02:57:43 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2017-09-17 04:07:20 +0300 |
commit | 218ee0b2ab23e3f127b77579c57e9097a5ac6056 (patch) | |
tree | ae25c7c166ab96457a31e86fce22199a31b134e1 | |
parent | ba6bf6b06731dd3312e15c761666ef60e03c990c (diff) | |
download | libass-218ee0b2ab23e3f127b77579c57e9097a5ac6056.tar.bz2 libass-218ee0b2ab23e3f127b77579c57e9097a5ac6056.tar.xz |
stroker: fix wording of algorithm description
-rw-r--r-- | libass/ass_outline.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libass/ass_outline.c b/libass/ass_outline.c index 6ee86d3..8abc29f 100644 --- a/libass/ass_outline.c +++ b/libass/ass_outline.c @@ -216,12 +216,12 @@ void outline_get_cbox(const ASS_Outline *outline, FT_BBox *cbox) * For splines algorithm first tries to offset individual points, * then estimates error of such approximation and subdivide recursively if necessary. * - * List of problems that need to be solved: + * List of border cases handled by this algorithm: * 1) Too close points lead to random derivatives or even division by zero. * Algorithm solves that by merging such points into one. - * 2) Degenerate cases--near zero derivative in some spline points. + * 2) Degenerate cases--near zero derivative at some spline points. * Algorithm adds circular cap in such cases. - * 3) Negative curvative--offset amount is larger than spline curvative. + * 3) Negative curvature--offset amount is larger than radius of curvature. * Algorithm checks if produced splines can potentially have self-intersection * and handles them accordingly. It's mostly done by skipping * problematic spline and replacing it with polyline that covers only @@ -237,8 +237,8 @@ void outline_get_cbox(const ASS_Outline *outline, FT_BBox *cbox) * 2) Multiplication of B-splines of order N and M is B-spline of order N+M. * 3) B-spline is fully contained inside convex hull of its control points. * - * So, for radial error its possible to check only control points of - * offset spline multiplication by itself. And for angular error its + * So, for radial error it's possible to check only control points of + * offset spline multiplication by itself. And for angular error it's * possible to check control points of cross and dot product between * offset spline and derivative spline. */ @@ -495,7 +495,7 @@ static bool start_segment(StrokerState *str, OutlinePoint pt, } str->last_normal = normal; - // check for negative curvative + // check for negative curvature double s = vec_crs(prev, normal); int skip_dir = s < 0 ? 1 : 2; if (dir & skip_dir) { |