Skip to content

bugfix: fixing rotation behaviour of Sector#1405

Merged
benmoran56 merged 2 commits intopyglet:masterfrom
igt-tsteiner:sector_rotation
Jan 27, 2026
Merged

bugfix: fixing rotation behaviour of Sector#1405
benmoran56 merged 2 commits intopyglet:masterfrom
igt-tsteiner:sector_rotation

Conversation

@igt-tsteiner
Copy link
Copy Markdown
Contributor

The rotation of Sector is used when creating vertices in _get_vertices method. This has the effect of doubling the drawn rotation when e.g. setting radius, angle, etc.

contains method mixes deg and rad when comparing angles, and does not account for negative start_angle and/or negative angle.

@benmoran56
Copy link
Copy Markdown
Member

Thank you for the PR. This looks good.

@benmoran56 benmoran56 merged commit 6608ea4 into pyglet:master Jan 27, 2026
20 checks passed
@igt-tsteiner
Copy link
Copy Markdown
Contributor Author

Thank you! Cheers, Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants