Fix tanArcTo (#3318)
* updated tangentArc math * Add a test case showing tan arc then xLineTo * Fix compile errors * Tweaking the math * Use + on angles * atan2 outputs radians, not degrees * Track ccw and center of all tan arcs * re-sequenced atan2 arcTan * Remove print statements * Update the test * Update kittycad in tauri * New arc fields --------- Co-authored-by: Jordan Noone <jordan@kittycad.io>
This commit is contained in:
@ -31,6 +31,13 @@ async fn kcl_test_riddle_small() {
|
||||
assert_out("riddle_small", &result);
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn kcl_test_tan_arc_x_line() {
|
||||
let code = kcl_input!("tan_arc_x_line");
|
||||
let result = execute_and_snapshot(code, UnitLength::Mm).await.unwrap();
|
||||
assert_out("tan_arc_x_line", &result);
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn kcl_test_lego() {
|
||||
let code = kcl_input!("lego");
|
||||
|
Reference in New Issue
Block a user