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

Added geometry.Line base #3131

Merged
merged 12 commits into from
Oct 12, 2024

Conversation

itzpr3d4t0r
Copy link
Member

@itzpr3d4t0r itzpr3d4t0r commented Sep 29, 2024

Co-authored-by: Emc2356 <[email protected]>
Co-authored-by: NovialRiptide <[email protected]>
Co-authored-by: ScriptLineStudios <[email protected]>
Co-authored-by: Avaxar <[email protected]>
Co-authored-by: maqa41 <[email protected]>
@itzpr3d4t0r itzpr3d4t0r added New API This pull request may need extra debate as it adds a new class or function to pygame geometry pygame.geometry labels Sep 29, 2024
@itzpr3d4t0r itzpr3d4t0r requested a review from a team as a code owner September 29, 2024 10:14
@damusss
Copy link
Member

damusss commented Sep 29, 2024

woah

Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition, is it really necessary to add a ..versionadded:: tag for every method and attribute? if the object was added in 2.5.2, it's kind of obvious that everything inside it was also added in the same version.

buildconfig/stubs/pygame/geometry.pyi Outdated Show resolved Hide resolved
Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing else comes to mind, LGTM, thanks :)

@itzpr3d4t0r itzpr3d4t0r added this to the 2.5.2 milestone Sep 29, 2024
@itzpr3d4t0r itzpr3d4t0r mentioned this pull request Sep 29, 2024
89 tasks
Copy link
Member

@MyreMylar MyreMylar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, LGTM 👍

Tests, docs & code seem fine and it all works locally. Good work! 💯

docs/reST/ref/geometry.rst Outdated Show resolved Hide resolved
buildconfig/stubs/pygame/geometry.pyi Show resolved Hide resolved
@aatle
Copy link
Contributor

aatle commented Oct 9, 2024

Is there any specific reason why the coordinates are named with xa, yb instead of ax, by?
The current is annoying for me to parse mentally, as it looks backwards and the 'subscript' appears in front of the point.

Removed Rect/Frect from canbeline stub.
Added some more info about passing a Rect/Frect to construct a Line and about degenerate lines potentially making some methods not work.
@itzpr3d4t0r itzpr3d4t0r requested a review from damusss October 12, 2024 09:52
Copy link
Member

@damusss damusss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright thanks, changes LGTM

@itzpr3d4t0r itzpr3d4t0r merged commit 7f18a37 into pygame-community:main Oct 12, 2024
28 checks passed
@itzpr3d4t0r itzpr3d4t0r deleted the geometry_line_class branch November 7, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geometry pygame.geometry New API This pull request may need extra debate as it adds a new class or function to pygame
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants