Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        return ($P1->{x} - $P0->{x}) * ($P2->{y} - $P0->{y})
                - ($P2->{x} - $P0->{x}) * ($P1->{y} - $P0->{y});
    }
    
  2. or download this
    Point 1 inside poly 1