# compare-oriented-cell

> Test if two sets of integers are equal up to an even permutation

Latest version **1.0.1** (published 2015-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install compare-oriented-cell
pnpm add compare-oriented-cell
yarn add compare-oriented-cell
bun add compare-oriented-cell
```

## 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.1 |
| Published | 2015-06-20 |
| First published | 2015-06-20 |
| 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 | cell, complex, simplex, simplicial, graph, oriented, directed, topology, index, search |

## Links

- npm: https://www.npmjs.com/package/compare-oriented-cell
- Repository: https://github.com/mikolalysenko/compare-oriented-cell
- Issues: https://github.com/mikolalysenko/compare-oriented-cell/issues
- npm.io page: https://npm.io/package/compare-oriented-cell

## Dependencies (2)

- [compare-cell](https://npm.io/package/compare-cell.md) ^1.0.0
- [cell-orientation](https://npm.io/package/cell-orientation.md) ^1.0.1

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-06-20
- 1.0.0 — 2015-06-20

## README

compare-oriented-cell
=====================
This module defines an ordering on oriented cells.  It is similar to `compare-cell`, except that it considers cells which are oriented clockwise/counter clockwise to be distinct.

# Example

```javascript
var compare = require('compare-oriented-cell')

//Create 3 triangles
var a = [0, 1, 2]
var b = [1, 2, 0]
var c = [1, 0, 2]

//Triangle a and b are equivalent up to an even permutation
console.log(compare(a, b) === 0)

//Triangle a and c are different as they not oriented the same
console.log(compare(a, c) === 0)
```

# Install

```
npm i compare-oriented-cell
```

# API

#### `require('compare-oriented-cell')(a, b)`
Compares two oriented cells.

* `a, b` are lists of integers

**Returns** `+/-1` if `a` and `b` are different, `0` otherwise

# License
(c) 2015 Mikola Lysenko. MIT License

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