-
Notifications
You must be signed in to change notification settings - Fork 134
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
Circle2D intersection with Line(Segment)2D #237
Conversation
Aleady existing test cases must be changed because of the implementation of FindRoots.Polynomial(coeffs), that is, the order of the solutions.
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.
Naming
src/Spatial/Euclidean/Circle2D.cs
Outdated
var d = line.Direction; | ||
var r = this.Radius; | ||
|
||
var a = 1d; |
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.
var a = 1.0;
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.
Could you tell me what the difference is between var a = 1.0
and var a = 1d
?
If this repo has coding conventions, I failed to read the doc. I will read it and fix this.
Thanks for the comment.
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.
I feel that var a = 1d;
is a bit like C of Fortran, that's all. I wouldn't reject a PR based on this.
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.
Thanks for the comment.
I respect your feeling, and I will fix this.
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.
done in the commit f-frhs@0e7eb69
for the case where LineSegment contains some of obtained intersections.
- parallel to X-axis - parallel to Y-axis - general cases (eg. x-y+c=0) test: rename method's name
4081b03
to
f3815ed
Compare
Could you tell me which requrest remains? |
Thank you for your effort and time! |
Thank YOU for your patience. |
I implemented the code to calculate the intersection of the circle with the line, specifically,
It will be nice if we can discuss whether the testcases are sufficient or not.
this task is based on the comment in #186:
Originally posted by @jkalias in #186 (comment)