-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce number of operations in Triangle::circumscribed_circle
#390
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me, I think this can be committed after the rebase.
1e2b348
to
cb23325
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to let this slip between the cracks.
(I think you need to rebase/merge main to trigger the formatting CI, possibly because something changed on main here, Github UI is not very helpful here...) |
(On top of PR linebender#387, as I'm removing a method here that is still used until that PR is merged. I'll keep this in draft until then.) This is based on the simplified form for Cartesian coordinates in https://en.wikipedia.org/w/index.php?title=Circumcircle&oldid=1247179617#Cartesian_coordinates_2 Also adds a test to check the circle radius' sign is equal to the sign of the triangle's area.
e721bac
to
dd9af02
Compare
(Yep, that triggered it. Thanks!) |
This is based on the simplified form for Cartesian coordinates in https://en.wikipedia.org/w/index.php?title=Circumcircle&oldid=1247179617#Cartesian_coordinates_2
Also adds a test to check the circle radius' sign is equal to the sign of the triangle's area.