From 014ca76334f2b284798a9505dbb4b6c1447aaa4e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 Sep 2023 07:27:51 -0400 Subject: [PATCH] docs: Add details Spell out what gsk_path_point_get_tangent does if there is no tangent: we return 0,0. --- gsk/gskpathpoint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gsk/gskpathpoint.c b/gsk/gskpathpoint.c index 4c564dc125..028ab31f3f 100644 --- a/gsk/gskpathpoint.c +++ b/gsk/gskpathpoint.c @@ -180,6 +180,9 @@ gsk_path_point_get_position (const GskPathPoint *point, * point, and the direction coming out of it. The @direction * argument lets you choose which one to get. * + * If the path is just a single point (e.g. a circle with + * radius zero), then @tangent is set to `0, 0`. + * * If you want to orient something in the direction of the * path, [method@Gsk.PathPoint.get_rotation] may be more * convenient to use.