Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //Draw Start line on Circle diameter
  2. public Point CirclePoint(float radius, float angleInDegrees, Point origin)
  3. {
  4. var x = (float)(radius * Math.Cos(angleInDegrees * Math.PI / 180F)) + origin.X;
  5. var y = (float)(radius * Math.Sin(angleInDegrees * Math.PI / 180F)) + origin.Y;
  6. return new Point(x, y);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement