Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: d3-polygon
node v10.24.1
endpoint
share
tweet
var d3Polygon = require("d3-polygon") var unitSquare = [[0,0], [0,1], [1,1], [1,0]]; var polygonContains = d3Polygon.polygonContains; unitSquare.forEach( p => console.log(`[${p}] in unitSquare : ${polygonContains(unitSquare, p)}`));
Created from: https://npm.runkit.com/d3-polygon
Loading…
Clone and edit this document