Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GrahameGW
Copy link
Contributor

line_intersects_line has parameters from and dir 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 from from and dir to point and slope respectively to further eliminate this confusion, and even further amend this description to point users to a function that does check rays for intersection.

@GrahameGW GrahameGW requested a review from a team as a code owner May 15, 2024 23:37
@Calinou Calinou added enhancement documentation cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels May 15, 2024
@Calinou Calinou added this to the 4.3 milestone May 15, 2024
doc/classes/Geometry2D.xml Outdated Show resolved Hide resolved
doc/classes/Geometry2D.xml Outdated Show resolved Hide resolved
doc/classes/Geometry2D.xml Outdated Show resolved Hide resolved
@GrahameGW
Copy link
Contributor Author

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

@GrahameGW
Copy link
Contributor Author

I was asked in another PR to change the commit name to the PR name so I've done that here

@GrahameGW
Copy link
Contributor Author

Squashed the various issues I had w/ git into a single commit as per the preferences of the godot team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release documentation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants