weiyongsheng/polygon

Point in polygon.

1.1.1 2017-04-15 09:53 UTC

This package is auto-updated.

Last update: 2024-05-05 16:19:02 UTC


README

Point in polygon

Usage

$polygon = new \Polygon\Polygon([
    [0, 0],
    [0, 1],
    [1, 1],
    [1, 0],
]);
var_dump($polygon->contain(0.5, 0.5)); // return bool(true)