diff options
| author | Jörg Sommrey <28217714+jo-37@users.noreply.github.com> | 2021-02-27 17:34:02 +0100 |
|---|---|---|
| committer | Jörg Sommrey <28217714+jo-37@users.noreply.github.com> | 2021-02-27 17:34:02 +0100 |
| commit | db019303f77e7a785e8719b052691bc8f447997d (patch) | |
| tree | a3bbd9491fae06674624ef3edb307b8d70ee2e42 | |
| parent | c88804dc7d655228f0b0cbf8565fb8e68cb4f5dd (diff) | |
| download | perlweeklychallenge-club-db019303f77e7a785e8719b052691bc8f447997d.tar.gz perlweeklychallenge-club-db019303f77e7a785e8719b052691bc8f447997d.tar.bz2 perlweeklychallenge-club-db019303f77e7a785e8719b052691bc8f447997d.zip | |
Enhance comment
| -rwxr-xr-x | challenge-101/jo-37/perl/ch-2.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/challenge-101/jo-37/perl/ch-2.pl b/challenge-101/jo-37/perl/ch-2.pl index 5594308283..627d7a85b6 100755 --- a/challenge-101/jo-37/perl/ch-2.pl +++ b/challenge-101/jo-37/perl/ch-2.pl @@ -41,10 +41,10 @@ say inner_origin(pairs @ARGV); # and need not be distinct. # Two consecutive checks are performed: # 1) Origin orientation: -# The coordinates of each pair of the polygon's corners form a 2x2 -# matrix. The sign of the corresponding determinant signals if the -# origin is left or right of the directed edge connecting these -# points. If the origin is an inner point, all orientations +# For each edge of the polygon (as a cycle), the coordinates of +# its corners form a 2x2 matrix. The sign of the corresponding +# determinant signals if the origin is left or right of the +# (directed) edge. If the origin is an inner point, all orientations # must agree, whereas an outer point will show different signs. # 2) Axis projection: # If the given points are collinear, all determinants are zero |
