Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. float x1 = (float)(x - radius * (float)System.Math.Cos(i * (2f * pi / resolution)));
  2. float y1 = (float)(y - radius * (float)System.Math.Sin(i * (2f * pi / resolution)));
  3. x1 = (float)(x + (float)System.Math.Cos(angle) * (x1 - x) - (float)System.Math.Sin(angle) * (y1 - y));
  4. 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