refactor: replace angle calculations with radians for consistency

This commit is contained in:
Hakan Seven committed 2026-05-03 21:58:38 +03:00
1 parent 8be415213a
commit 603d07412e
11 files changed
+98 -99

No files matched your search

+2 -2
View File
@@ -531,8 +531,8 @@ impl ArrayPathCommand {
}
EntityType::Arc(a) => {
let (cx, cy, r) = (a.center.x as f32, a.center.y as f32, a.radius as f32);
let a0 = a.start_angle.to_radians() as f32;
let a1 = a.end_angle.to_radians() as f32;
let a0 = a.start_angle as f32;
let a1 = a.end_angle as f32;
let span = {
let s = fn_norm(a1) - fn_norm(a0);
if s <= 0.0 {