Could someone be so kind to help me with this problem? I'm designing a game and I have to calculate if the enemy ship has in range of view the player ship in order to shoot him but I am having problems with the maths.
I have two figures: $A$ (the enemy) and $B$ (the ally).
This is my information of the figures (ships):
From A (enemy):
$rotation$ = Rotation of the figure on radiants of figure A.
$Xa$, $Xa$ = Coordinates
$range$ = Range of view of figure A.
$angle$ = Angle of view in radiants of figure A.