Finding angles of a pigeon
Hi everyone, I have a queston:
Consider a gun fixed on a ground. The gun can move horizontally within some range of angles and vertically within some range of angles, thus it makes a cone in air which is its effective fire area. It means that it can target a pigeon in the air if the pigeon is within its cone area.
known things: x,y coordinates of the pigeon and its height above the ground
x,y coordinates of the gun and its height above the ground
unknown/To Find: is the pigeon in the cone's area of the gun? Or is the pigeon in the area that the gun can hit it?
if I draw the pic, it would be something like this:
Pigeon(x2,y2,h2)
/
/
/
/
/
/
GUN(x1,y1,h1)
whereas the gun's cone would look something like this:
\ /
\ /
\ /
\ /
O
GUN(x1,y1,h1)
well for simplicity, I have made the cone vertically above, but it may be at side, like at 45 degrees from the ground... hope it helps u in imagining the problem.