# simple-intersect

> a simple collection of 2d collision/intersects functions, supporting points, circles, lines, axis-aligned boxes, and polygons

Latest version **1.4.0** (published 2018-04-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install simple-intersect
pnpm add simple-intersect
yarn add simple-intersect
bun add simple-intersect
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2018-04-24 |
| First published | 2017-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 564 |
| Author | david figatner |
| Maintainers | davidfig |

## Links

- npm: https://www.npmjs.com/package/simple-intersect
- Repository: https://github.com/davidfig/simple-intersect
- Homepage: https://github.com/davidfig/simple-intersect#readme
- Issues: https://github.com/davidfig/simple-intersect/issues
- npm.io page: https://npm.io/package/simple-intersect

## Recent versions

- 1.4.0 (latest) — 2018-04-24
- 1.3.4 — 2017-12-24
- 1.3.3 — 2017-12-07
- 1.3.2 — 2017-12-07
- 1.3.1 — 2017-11-29
- 1.3.0 — 2017-11-29
- 1.2.0 — 2017-11-28
- 1.1.0 — 2017-11-28
- 1.0.0 — 2017-11-28

## README

## intersects
a simple collection of 2d collision/intersects functions, supporting points, circles, lines, axis-aligned boxes, and polygons

## rationale
I wanted a simplified collection of collision functions that work across different shapes. If you want a more advanced implementation designed for pixi.js. 

## Live Example
https://davidfig.github.io/simple-intersect/

## Installation

    npm i simple-intersect

## Usage
```js
    var intesect = require('simple-intersect');
    var intersected = intersect.boxBox(x1, y1, w1, h1, x2, y2, w2, h2);
```
or
```js
    var circleBox = require('simple-intersect/circle-box');
    var intersected = circleBox(x, y, r, x1, y1, w1, h1);
```

# API

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