# left-right

> Computes the orientation of 3 points

Latest version **1.0.0** (published 2014-06-05) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install left-right
pnpm add left-right
yarn add left-right
bun add left-right
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-06-05 |
| First published | 2013-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | robust, geometric, predicate, left, right, plane, orientation, clockwise, colinear |

## Links

- npm: https://www.npmjs.com/package/left-right
- Repository: https://github.com/mikolalysenko/left-right
- Issues: https://github.com/mikolalysenko/left-right/issues
- npm.io page: https://npm.io/package/left-right

## Dependencies (2)

- [signum](https://npm.io/package/signum.md) ^1.0.0
- [robust-orientation](https://npm.io/package/robust-orientation.md) ^1.1.3

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-06-05
- 0.0.1 — 2013-09-19
- 0.0.0 — 2013-09-19

## README

left-right
==========
Tests if 3 points are oriented clockwise, counter-clockwise or colinear.

**WARNING** This module is deprecated.  You should use [robust-orientation](https://www.npmjs.org/package/robust-orientation) instead.

## Example

```javascript
var lr = require("left-right")

console.log(lr([1, 0], [0, 0], [0, 1]))

//Prints out:  -1
```

## Install

    npm install left-right
    
## API

### `require("left-right")(a, b, c)`
Computes the orientation of `a`, `b`, `c`

* `a,b,c` are 3 2d points, encoded as arrays

**Returns** One of the following values:

* 1 if `a,b,c` are counter clockwise oriented
* -1 if `a,b,c` are clockwise
* 0 if they are colinear

## Credits
(c) 2013 Mikola Lysenko. MIT License

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