pygame-ce
pygame-ce copied to clipboard
Add more `Line` attributes
Adds the following Line attributes:
- center
- centerx/y
- angle
- slope
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.pyihttps://github.com/pygame-community/pygame-geometry/blame/main/geometry.pyi Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar -
geometry.rsthttps://github.com/pygame-community/pygame-geometry/blame/main/docs/line.rst Credits to @Emc2356 @itzpr3d4t0r @ScriptLineStudios @avaxar -
line.chttps://github.com/pygame-community/pygame-geometry/blame/main/src_c/line.c Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar -
geometry.hhttps://github.com/pygame-community/pygame-geometry/blame/main/src_c/include/geometry.h Credits to @Emc2356 @itzpr3d4t0r @maqa41 -
geometry_test.pyhttps://github.com/pygame-community/pygame-geometry/blame/main/test/test_line.py Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar