Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // Get the X position of the pointClicked
  2. cx = (double)prePs.X;
  3. // Get the Y position of the pointClicked
  4. cy = double.Parse(this.plotter.Viewport.Transform.DataTransform.ViewportToData(prePs).Y.ToString());
  5.  
  6. // Get the new X position of the pointClicked by the angel with math calculation
  7. xEndP = (float)(double.Parse(txt_enterRadius.Text.ToString()) * Math.Cos(a * Math.PI / 180F)) + cx;
  8. // Get the new Y position of the pointClicked by the angel with math calculation
  9. yEndP = (float)(double.Parse(txt_enterRadius.Text.ToString()) * Math.Sin(a * Math.PI / 180F)) + cy;
  10.  
  11. http://sizmedia.com/my.php?i=hm2zuv5yyenj.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement