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

前端 未结 4 1088
暗喜
暗喜 2021-02-08 16:58

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:46

    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.

提交回复
热议问题