Hi,

I'm searching how to calculate a rectangle corners position depending on the rectangle rotation.

below a simple example to illustrate what I want to do:

```
# Rectangle size
width = 200
height = 100
# Rectangle Coordinate
rec_pos = Vector(0,0,0)
rec_rot = Vector(0,0,0)
# Calculate corners position when rectangle rotation = Vector(0,0,0)
x_pos = width/2
y_pos = height/2
top_left_corner = Vector(rec_pos.x - x_pos, rec_pos.y + y_pos, rec_pos.z)
top_right_corner = Vector(rec_pos.x + x_pos, rec_pos.y + y_pos, rec_pos.z)
bottom_left_corner = Vector(rec_pos.x - x_pos, rec_pos.y - y_pos, rec_pos.z)
bottom_right_corner = Vector(rec_pos.x + x_pos, rec_pos.y - y_pos, rec_pos.z)
# Calculate corners position when rectangle rotation != Vector(0,0,0)
# example
rec_pos = Vector(0,0,0)
rec_rot = Vector(90, 30, 0)
top_left_corner = ?
top_right_corner = ?
bottom_left_corner = ?
bottom_right_corner = ?
```

Thanks