Skip to content

Commit

Permalink
try std::atan
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamPorcineFudgepuppy committed Jul 8, 2024
1 parent e65ccb2 commit e67ad65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/complex/ComplexWidgets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace cpx {


float length=newZ.norm();
Vec tip = newZ.normalize().mult(2*fullR/M_PI*std::atanhf(length));
Vec tip = newZ.normalize().mult(2*fullR/M_PI*std::atan(length));

drawArrowTo(args.vg,tip,box.size.x/7);
nvgRestore(args.vg);
Expand Down

0 comments on commit e67ad65

Please sign in to comment.