-
Notifications
You must be signed in to change notification settings - Fork 343
The Rect, Pt. II: The Rect-oning and the Vec-oning #2096
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
The Rect, Pt. II: The Rect-oning and the Vec-oning #2096
Conversation
Linting is semi done. Pyright is being an ass
I am very tired. Almost certain I missed some
* Add scissor and viewport arguments as param entries * Rephrase existing doc a little
Added |
* Fix sphinx literal issue + document Rect.kwargs * Improve RectKwargs doc
What's the reason behind having |
Also what about typing |
The same one was
TL;DR: My understanding is that it's unneeded complexity. As far as I understand, the only case where we lock to If we were to add |
* Remove unused Point import in camera/data_types.py * Add a newline before __all__ * Reorder some imports
* Remove generic projector * Clean up imports
* Comment arcade.types.Point * Move the temporary arcade.types.Velocity stub
* Move Point*List into vector_like * Fix __all__s and imports * Mark potentially obsolete items with comments
Partial bits of Rect doc cleanup
Don't call it a comeback.
Welcome to the new stage of Rect: integration. We put Rects anywhere that mattered
except GUI, we'll work on that with @eruvanos, and it makes the library code and the end-user experience so much nicer. See for yourself:Rect
Rect.distance_from_bounds()
position_to_uv()
anduv_to_position()
point in rect
support forRect
*
and/
support for scaling relative to(0, 0)
..area
propertyVec2
now acceptTuple[AsFloat, AsFloat]
.viewport
Point2
andPoint3
Point
,Point2
, orPoint3
where points are expectedVec2
orVec3
as expectedRect
and it's constructors,Vec2
, andVec3
to top-level moduleTexture.draw_rect()
BasicSprite.rect
Section.rect
Window.rect
SpriteSolidColor.from_rect()
NinePatchTexture.from_rect()
IntRect
,FloatRect
,RectList
aliasesRect
inarcade.GUI
toGUIRect
Tuple[float, float]
now returnVec2
, same forVec3
BasicSprite.scale_xy
, though it's name and functionality I believe should be replaced with the suggestions made in Name scale properties on Sprites to things that make sense #2021