mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
bce4153640
When the line overlaps itself backtracking exactly, e.g. path.MoveTo(0, 100) path.LineTo(100, 0) path.LineTo(0, 100) then acos calculation is relatively unstable. By using atan2 it avoids some of such problems in the calculation. Additionally, it simpliflies the round join calculation. Fixes: https://todo.sr.ht/~eliasnaur/gio/474 Signed-off-by: Egon Elbre <egonelbre@gmail.com>