Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implement the Center pivot point for rectangle #198

Merged
merged 3 commits into from
Oct 3, 2021

Conversation

Antonio-Bennett
Copy link
Contributor

This pull request fixes #193

@suspistew
Copy link
Owner

suspistew commented Oct 2, 2021

Hey @Antonio-Bennett you're almost there, but there is one more thing :

  • To compute the center position of a rectangle, we need an x offset and an y offset. That's different from the square because a rectangle can have different width/height

Can you do this please ?

@Antonio-Bennett
Copy link
Contributor Author

Ahh yes that makes sense actually, ok not at home at the moment but will do this later 🙂

@Antonio-Bennett
Copy link
Contributor Author

Ok I've made some changes tell me if I still need to fix anything :) thanks for being patient

@suspistew
Copy link
Owner

hey @Antonio-Bennett, perfect, thanks ! No problem, these issues are here to 'learn' and be patient !

Please consider giving a little ⭐ for the project if you don't mind, it helps it to be visible in the community. 🙏

@suspistew suspistew merged commit c5aec99 into suspistew:main Oct 3, 2021
@Antonio-Bennett
Copy link
Contributor Author

Yup for sure ⭐️! Loving the rust community so far!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the Center pivot point for rectangle
2 participants