Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: How to constrain a point outside of a circle to the circles edge  (Read 200 times)
serial
Customers
Community Member
*****
Posts: 380


« on: January 17, 2012, 04:41:11 PM »

Basically I want to be able to move my mouse and have the XY coordinates stay relative to a circle. 

Just curious if anybody has any info on the math behind this.

Logged
Mithrandir_
Moderator
Community Member
*****
Posts: 349


WWW
« Reply #1 on: January 17, 2012, 07:50:50 PM »

So what you are asking is that if your cursor is outside of the circle and you draw a line from the cursor position to the center of the circle, then the intersection between the circle and line is what you are after. Correct?
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks