Help for this page

Select Code to Download


  1. or download this
      # p1 is starting or anchor point of the line segment
      foreach my $p1 (@{$points}) {
    ...
          }
        }
      }
    
  2. or download this
    # outer loop goes through all points
    for my $i ( 0 .. $#{$points}) {
    ...
        }
      }
    }