Use kittycad::Angle instead of our own (#934)

This commit is contained in:
Adam Chalmers
2023-10-24 16:32:41 -07:00
committed by GitHub
parent 6dc4fbc808
commit f6f1574982
5 changed files with 50 additions and 88 deletions

View File

@ -2,11 +2,10 @@
use anyhow::Result;
use derive_docs::stdlib;
use kittycad::types::{ModelingCmd, Point3D};
use kittycad::types::{Angle, ModelingCmd, Point3D};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use super::utils::Angle;
use crate::{
errors::{KclError, KclErrorDetails},
executor::{
@ -1033,8 +1032,8 @@ async fn inner_arc(data: ArcData, sketch_group: Box<SketchGroup>, args: Args) ->
segment: kittycad::types::PathSegment::Arc {
angle_start: angle_start.degrees(),
angle_end: angle_end.degrees(),
start: Some(angle_start.into()),
end: Some(angle_end.into()),
start: Some(angle_start),
end: Some(angle_end),
center: center.into(),
radius,
relative: false,