Statie Orientare if (drx > 0 & dry > 0) {statieorientare = (Math.atan(dry / drx)) / Math.PI * 200;} else if (drx < 0 & dry > 0) {statieorientare = (Math.atan(dry / drx)) / Math.PI * 200+200;} else if (drx < 0 & dry < 0) {statieorientare = (Math.atan(dry / drx)) / Math.PI * 200+200;} else if (drx > 0 & dry < 0) {statieorientare = (Math.atan(dry / drx))/ Math.PI * 200+400;} Statie modul if (statiehz > statieorientare) {statiemodul = statiehz - statieorientare;} else {statiemodul = statiehz +(400 - statieorientare);} distanta redusa Hdist = Sdist * Math.Sin(Vz * Math.PI / 200) Hd radiathdist = radiatsdist*Math.sin(radiatvz * Math.PI/200); if (radiathz > statiemodul) {radiatorientare = radiathz - statiemodul;} else {radiatorientare = radiathz +(400 - statiemodul);} coordonate x, y X3 = cos (orientare*PI/200)*distanta + X1; Y3 = sin (orientare*PI/200)*distanta + Y1; radiatx = Math.cos(radiatorientare * Math.PI / 200) * radiathdist + statiex; radiaty = Math.sin(radiatorientare * Math.PI / 200) * radiathdist + statiey; Dh = Sdist * Math.Cos(Vz * Math.PI / 200) dh = radiatsdist*Math.cos(radiatvz*Math.PI/200); radiatz = radiatsdist*Math.cos(radiatvz*Math.PI/200) + statiez +statiehi - radiathr; radiatdh = radiatz-statiez;