From ebd4ceca15794deb2d86a01f2a7b8b32a3ffea3c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 24 Aug 2023 11:13:08 -0400 Subject: [PATCH] path docs: Clarify curvature The curvature of lines is zero, not infinite. --- gsk/gskpathpoint.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gsk/gskpathpoint.c b/gsk/gskpathpoint.c index 9c620ba079..485d023fb0 100644 --- a/gsk/gskpathpoint.c +++ b/gsk/gskpathpoint.c @@ -255,8 +255,11 @@ gsk_path_point_get_rotation (const GskPathPoint *point, * Optionally, returns the center of the osculating circle as well. * The curvature is the inverse of the radius of the osculating circle. * - * If the curvature is infinite (at line segments), zero is returned, - * and @center is not modified. + * Lines have a curvature of zero (indicating an osculating circle of + * infinite radius. In this case, the @center is not modified. + * + * If curvature does not exist (at sharp turns), zero is returned and + * the @center is again not modified. * * *