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

How to see if rectangle is rotated after packing? #17

Open
njanakiev opened this issue May 28, 2018 · 1 comment
Open

How to see if rectangle is rotated after packing? #17

njanakiev opened this issue May 28, 2018 · 1 comment

Comments

@njanakiev
Copy link

Is there an elegant way to find out if a packed rectangle is rotated? This might be a handy feature instead of comparing width or height manually, but I could not find anything.

@secnot
Copy link
Owner

secnot commented May 29, 2018

Not currently, but you can assign an id to each rectangle to make the comparison simpler.

I will add a 'rotated' attribute to Rectangle with the next update

Thank you

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

No branches or pull requests

2 participants