-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Clarify documentation for Geometry2D.line_intersects_line
#92001
Conversation
These are good suggestions, thanks guys. I'll clean things up a bit and push changes. I was struggling w/ the pre-commit hooks so I've been focused on that but now I've got it working (at least locally) so I'll go back and review this stuff |
149c65f
to
b17935d
Compare
724e3fa
to
bbf3582
Compare
I was asked in another PR to change the commit name to the PR name so I've done that here |
bbf3582
to
f7eb16c
Compare
Squashed the various issues I had w/ git into a single commit as per the preferences of the godot team |
This has been sitting a bit but has all the requested changes. I re-requested a review; if there's a better way to do things let me know. Thanks! |
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.
Keep in mind most of us are doing this in our free time, too 😉
Of course--I figured there were higher priority things; I just wanted to make sure it didn't get lost in the shuffle. Thanks very much! |
Geometry2D.line_intersects_line
Thanks! |
line_intersects_line has parameters
from
anddir
to define each line that implies the intersecting lines are rays (rather infinite lines, which they actually are). As this caused me confusion, I wrote some clarifying examples and attempted to improve this description. It would also be a good idea to rename these parameters fromfrom
anddir
topoint
andslope
respectively to further eliminate this confusion, and even further amend this description to point users to a function that does check rays for intersection.