StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| test | 5 years ago | |
| .npmignore | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| package.json | 5 years ago | |
| robust-pnp.js | 5 years ago | |
README.md
robust-point-in-polygon
Exactly determines if a point is contained in a 2D polygon.
Example
var classifyPoint = require("robust-point-in-polygon")
var polygon = [ [ 1, 1 ], [ 1, 2 ], [ 2, 2 ], [ 2, 1 ] ]
console.log(
classifyPoint(polygon, [1.5, 1.5]),
classifyPoint(polygon, [1, 2]),
classifyPoint(polygom, [100000, 10000]))
Output:
-1 0 1
Install
npm install robust-point-in-polygon
API
require("robust-point-in-polygon")(loop, point)
Tests if a point is contained in the interior of a simple polygon
loopis an array of vertices for the polygonpointis a 2D point which is classified against the polygon
Returns An integer which determines the position of point relative to polygon. This has the following interpretation:
-1ifpointis contained insideloop0ifpointis on the boundary ofloop1ifpointis outsideloop
Credits
(c) 2014 Mikola Lysenko. MIT License