Closed itzpr3d4t0r closed 1 month ago
woah
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.
This pull request adds the
Line
class to thepygame.geometry
module.It also adds the ax, ay, bx, by, a, b attributes, str functionality (for printing), and the copy method. It also adds their associated docs and tests.
Credits
Geometry Project: For code, docs and tests: @novialriptide @Emc2356 @itzpr3d4t0r @ScriptLineStudios @avaxar @Matiiss @newpaxonian @maqa41 @blankRiot96 Also thanks to @Starbuck5 for kickstarting the idea and the occasional help!
Functionality added in this PR
geometry.pyi
https://github.com/pygame-community/pygame-geometry/blame/main/geometry.pyi Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxargeometry.rst
https://github.com/pygame-community/pygame-geometry/blame/main/docs/line.rst Credits to @Emc2356 @itzpr3d4t0r @ScriptLineStudios @avaxarline.c
https://github.com/pygame-community/pygame-geometry/blame/main/src_c/line.c Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxargeometry.h
https://github.com/pygame-community/pygame-geometry/blame/main/src_c/include/geometry.h Credits to @Emc2356 @itzpr3d4t0r @maqa41geometry.c
https://github.com/pygame-community/pygame-geometry/blame/main/src_c/geometry.c Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxargeometry_test.py
https://github.com/pygame-community/pygame-geometry/blame/main/test/test_line.py Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar