Top left point of rotated RectangleGeometry in C #

I have been given a rotation RectangleGeometry, and I need to find the upper and lower right points. What would be the fastest way to achieve this?

Note that I do not need these points for AABB or anything like that - I only need rectangular points.

Thank you in advance for the tips!

Greetings

+3
source share
1 answer

The property Rectcontains points RectangleGeometry. It is not clear to me if it Rectreflects any rotation, or if it does not rotate. If these are not rotated points, you will need to take the points from Rectand transform them using the property Transformfor RectangleGeometry.

+3
source

Source: https://habr.com/ru/post/1775696/


All Articles