Calculates the corners of a rotated rectangle.
Center X.
Center Y.
Width.
Height.
Rotation angle in radians.
Array of 4 corners {x, y}.
Calculates the corners of a rotated rectangle.