Skip to content
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

TGeometry.rotate: Pass degrees to TPoint.rotate #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonnyarnold
Copy link

@jonnyarnold jonnyarnold commented Jul 5, 2024

There was a bug where TGeometry.rotate didn't pass the degrees parameter to TPoint.rotate, meaning that calls to TGeometry.rotate (and TDocument.rotate) only ever rotated the polygon by 180 degrees.

Potential fix for #133?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@athewsey
Copy link
Contributor

Thanks for proposing! This seems like a sensible & small fix to me... Any chance you could add a unit test? It seems like the current ones in test_trp2.py only look at TPoint.rotate which is probably why this fell through the cracks.

@athewsey athewsey added the python Relates to the Python version of TRP label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Relates to the Python version of TRP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants