Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

i have arc A ,i know startangle,endangle,startPoint,Endpoint,centre,radius of arc and i have point B, i like to find point B lies or not in arc A , i need formula or algorithum for this

share|improve this question
add comment

2 Answers

Did you take a look here: http://mathforum.org/library/drmath/view/54365.html

share|improve this answer
2  
This sort of answers (pointing to a URL) is better as a comment, IMO. –  anon Oct 6 '10 at 12:55
    
@Muad: Right, i keep that in Mind from now on. –  anonymous Oct 6 '10 at 12:58
add comment

Assuming you're talking about an arc of a circle, the first question to ask is whether the point lies on the circle. This just means that the distance from the center of the circle to your point is equal to the radius. Then find out the angle between the radius to your point and, say, a horizontal line, and figure out whether the point is within the bounds of the arc.

share|improve this answer
2  
@ratty. In the second step using $\arctan(y/x)$ is not sufficient. You must use atan2: en.wikipedia.org/wiki/Atan2 –  Jyotirmoy Bhattacharya Oct 6 '10 at 12:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.