weiyongsheng/polygon

Point in polygon.

1.1.1 2017-04-15 09:53 UTC

This package is auto-updated.

Last update: 2024-12-05 17:27:39 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)