This formula seems more direct and easier to implement but there certain conditions that needs to be met before we can implement it.
We need to know the center point of rotation, the radius from the center point and of course the angle to rotate.
x=cos(angle)*radius;
y=sin(angle)*radius;
// radius from center pt var r:Number=100;
// inital angle var a:Number=0;
// define center pts var centerX:Number=cross._x; var centerY:Number=cross._y;
For the above example, it may seem fine when we are just rotating 1 object. But if we were to rotate multiple objects and their positions to the center point could be changing. ie.
Momentum v02. If we were to apply the above formula, then we need to calculate each object radius from the center point, the angle and the center point x and y values. Imagine if there were 10 objects, then we need to create 10 set of variables.
So this is the time to implement the next formula: