pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

Add more `Line` attributes

Open itzpr3d4t0r opened this issue 11 months ago • 3 comments
trafficstars

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.pyi https://github.com/pygame-community/pygame-geometry/blame/main/geometry.pyi Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar

  • geometry.rst https://github.com/pygame-community/pygame-geometry/blame/main/docs/line.rst Credits to @Emc2356 @itzpr3d4t0r @ScriptLineStudios @avaxar

  • line.c https://github.com/pygame-community/pygame-geometry/blame/main/src_c/line.c Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar

  • geometry.h https://github.com/pygame-community/pygame-geometry/blame/main/src_c/include/geometry.h Credits to @Emc2356 @itzpr3d4t0r @maqa41

  • geometry_test.py https://github.com/pygame-community/pygame-geometry/blame/main/test/test_line.py Credits to @Emc2356 @itzpr3d4t0r @novialriptide @ScriptLineStudios @avaxar

itzpr3d4t0r avatar Dec 16 '24 12:12 itzpr3d4t0r