secnot/rectpack

How to see if rectangle is rotated after packing?

njanakiev opened this issue · 1 comments

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.

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