Skip to main content
. 2024 Jul 26;24(15):4861. doi: 10.3390/s24154861
Algorithm 3 No parallel straight edges
  • 1:

    if n==1 and A==small then

  • 2:

        Use (xE1,yE1) and θE1

  • 3:

    else if n==0 then

  • 4:

        Draw lines Ln about (xc,yc) at rotating intervals

  • 5:

        Find points A and B intersecting P

  • 6:

        if m0 then

  • 7:

            for i = 1 to m do

  • 8:

               Discard any Ln if intersects Ci

  • 9:

        Find Ln with shortest length AB

  • 10:

        Use points A, B and θAB