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

前端 未结 4 990
醉酒成梦
醉酒成梦 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:33

    Let the vector from the point of origin to the specified point makes an angle A with the normal that runs through the center. If the angle A is less than the half angle of the cone it lies inside else outside.

提交回复
热议问题