Skip to content

Commit

Permalink
fix angleToMatchLengthXY (#1765)
Browse files Browse the repository at this point in the history
Co-authored-by: Jess Frazelle <[email protected]>
  • Loading branch information
Irev-Dev and jessfraz authored Mar 21, 2024
1 parent 1d01ba4 commit b05ac3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wasm-lib/kcl/src/std/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ fn inner_angle_to_match_length_x(

let diff = (to - last_line.to[0]).abs();

let angle_r = diff / length.acos();
let angle_r = (diff / length).acos();

if diff > length {
Ok(0.0)
Expand Down Expand Up @@ -365,7 +365,7 @@ fn inner_angle_to_match_length_y(

let diff = (to - last_line.to[1]).abs();

let angle_r = diff / length.asin();
let angle_r = (diff / length).asin();

if diff > length {
Ok(0.0)
Expand Down

0 comments on commit b05ac3a

Please sign in to comment.