# convexhull

> convex hull 2D Andrew's monotone algorithm

Latest version **1.0.7** (published 2017-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install convexhull
pnpm add convexhull
yarn add convexhull
bun add convexhull
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2017-03-15 |
| First published | 2017-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | eatgrass |
| Maintainers | eatgrass |
| Keywords | convex-hull, algorithm |

## Links

- npm: https://www.npmjs.com/package/convexhull
- Repository: https://github.com/eatgrass/convexhull
- Homepage: https://github.com/eatgrass/convexhull#readme
- Issues: https://github.com/eatgrass/convexhull/issues
- npm.io page: https://npm.io/package/convexhull

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Recent versions

- 1.0.7 (latest) — 2017-03-15
- 1.0.6 — 2017-03-15
- 1.0.5 — 2017-03-14
- 1.0.4 — 2017-03-14
- 1.0.3 — 2017-03-14
- 1.0.2 — 2017-03-14
- 1.0.1 — 2017-03-14
- 1.0.0 — 2017-03-14

## README

# convexhull
[![npm version](https://badge.fury.io/js/convexhull.svg)](https://badge.fury.io/js/convexhull)
[![Build Status](https://travis-ci.org/eatgrass/convexhull.svg?branch=master)](https://travis-ci.org/eatgrass/convexhull)

convex hull 2D algorithm using monotone chain algorithm

## usage

```javascript
const convexhull = require('convexhull')(/*options*/{x: 'lng', y: 'lat'});

const points = [
  {
    lng: 121.409058,
    lat: 31.191149
  },
  ...
];

let hull = convexhull(points);

// for unsorted points
hull = convexhull(points, true);

```

## Options

| option        | desc           | default     |
| ------------- |:--------------:| ------------|
| x             | property key x | 'longitude' |
| y             | property key y | 'latitude'  |

## Reference
[MonotoneChain](http://geomalgorithms.com/a10-_hull-1.html#Monotone%20Chain)

---
_Source: https://npm.io/package/convexhull · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
