Simplify object rotation
In some cases we are given spread distance instead of rotation angle. To convert it to angle we must first calculate it with formula.
In our case
a are equal. And
b is the spread distance.
This formula works fine, but require understanding of work with trigonometrical functions and conversion from radians to degrees. Plus it is hard to read such a formula. To improve this case we could add a function
spreadDistance(radius, spread) it will return rotation angle in degrees.
Note. Radius is a distance between rotation center and a spread point.