# How to verify if a point lies between 2 vectors?

This topic is 3953 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

How do you verify if a point lies between 2 vectors? If I have 2 2d vectors and a 2d point, how can I know that the point lies between the 2 vectors like in a radar view system? Thanks in advance!

##### Share on other sites
Could you just get the angles for the three vectors (treating point as a vector), and see that the one lies between the other two. Also making sure the distance from the origin is less than the length of the other vectors if need be.

##### Share on other sites
2 dot products. For the left vector use the right hand normal and for the right vector use the left hand normal. Take the vector of 2D point - center of the radar. Perform the dot product (v1.x*v2.x+v1.y*v2.y) and if it's > 0 for both then it's between the vectors. Research it and test it out on paper.

##### Share on other sites
I was going to suggest that, but doesn't that assume the rader forms a π/2 angle?

1. 1
2. 2
3. 3
Rutin
20
4. 4
khawk
14
5. 5

• 9
• 11
• 11
• 23
• 12
• ### Forum Statistics

• Total Topics
633655
• Total Posts
3013186
×