Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float x1 = (float)(x - radius * (float)System.Math.Cos(i * (2f * pi / resolution)));
- float y1 = (float)(y - radius * (float)System.Math.Sin(i * (2f * pi / resolution)));
- x1 = (float)(x + (float)System.Math.Cos(angle) * (x1 - x) - (float)System.Math.Sin(angle) * (y1 - y));
- y1 = (float)(y + (float)System.Math.Sin(angle) * (x1 - x) + (float)System.Math.Cos(angle) * (y1 - y));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement