forked from joejulian/gio
internal/stroke: fix line overlap
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>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 584 B |
Reference in New Issue
Block a user