Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

point-in-polygon

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

point-in-polygon

determine if a point is inside a polygon with a ray intersection counting algorithm

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
505K
decreased by-51.04%
Maintainers
1
Weekly downloads
 
Created

What is point-in-polygon?

The point-in-polygon npm package is a utility for determining whether a given point lies inside a polygon. This can be useful in various applications such as geographical mapping, collision detection in games, and more.

What are point-in-polygon's main functionalities?

Check if a point is inside a polygon

This feature allows you to check if a given point is inside a specified polygon. The function returns true if the point is inside the polygon and false otherwise.

const inside = require('point-in-polygon');
const point = [1, 1];
const polygon = [[0, 0], [2, 0], [2, 2], [0, 2]];
console.log(inside(point, polygon)); // true

Other packages similar to point-in-polygon

Keywords

FAQs

Package last updated on 01 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc