Recent content by mhurkman

  1. M

    How to calc sides of rectangle inside a rotated rectangle

    Thanks, I will be implementing this over the weekend. Will let you know how it turns out. Cheers, Mark
  2. M

    How to calc sides of rectangle inside a rotated rectangle

    Hello Yuiop, Thank you so much for your reply. I understand your method, a clever approach. I see your point with Px,Py falling outside of the image area but since I will be recalculating the crop window continually as the user drags and rotates the image it should not happen. Thanks a...
  3. M

    How to calc sides of rectangle inside a rotated rectangle

    I'm hoping for some help as it has been 20 years since I last used trigonometry and Google has come up empty. I'm programming simple image editing software and for a crop function I need a formula to calculate the sides of the largest possible rectangle inside a rotated rectangle, given the...
Back
Top