2D geometry: how to check if a point is inside an angle

前端 未结 4 998
醉酒成梦
醉酒成梦 2021-02-08 17:15

i have the following geometrical issue in 2D:

i have a point from which i cast an infinite angle (2D-cone) which is given by a direction and an angle. (the point and th

4条回答
  •  醉酒成梦
    2021-02-08 17:44

    I would say the best way is to project the point onto the 2D surface perpendicular to the cones direction. Then you calculate the othogonal distance between that same plane and the point. Finally, you know the width of the cone at that height, so you can see if the point is outside that width.

提交回复
热议问题