Change to use Angle type's comparison (#4575)

This commit is contained in:
Jonathan Tran
2024-11-25 18:17:47 -05:00
committed by GitHub
parent 5ff1d9e268
commit 99dd8b87dc
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ async fn inner_circle(
},
radius: data.radius,
center: data.center,
ccw: angle_start.to_degrees() < angle_end.to_degrees(),
ccw: angle_start < angle_end,
};
let mut new_sketch = sketch.clone();

View File

@ -1564,7 +1564,7 @@ pub(crate) async fn inner_arc(
source_ranges: vec![args.source_range],
}));
}
let ccw = angle_start.to_degrees() < angle_end.to_degrees();
let ccw = angle_start < angle_end;
let id = exec_state.id_generator.next_uuid();