cell-orientation

WebJar for cell-orientation

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

cell-orientation
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

cell-orientation
WebJar for cell-orientation
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mikolalysenko/cell-orientation

Download cell-orientation

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/cell-orientation/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>cell-orientation</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/cell-orientation/
implementation 'org.webjars.npm:cell-orientation:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/cell-orientation/
implementation ("org.webjars.npm:cell-orientation:1.0.1")
'org.webjars.npm:cell-orientation:jar:1.0.1'
<dependency org="org.webjars.npm" name="cell-orientation" rev="1.0.1">
  <artifact name="cell-orientation" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='cell-orientation', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "cell-orientation" % "1.0.1"
[org.webjars.npm/cell-orientation "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

cell-orientation

Computes the orientation of a cell, given by a list of integer indices.

Example

var orientation = require('cell-orientation')

console.log(orientation([0, 1, 2]))
console.log(orientation([1, 0, 2]))
console.log(orientation([1, 1, 2]))

API

require('cell-orienation')(s)

Computes the orientation of the cell

  • s is a list of integers

Returns 0 if s has any duplicates (ie is degenerate), otherwise +/- depending on the ordering of s

License

(c) 2015 Mikola Lysenko. MIT License

Versions

Version
1.0.1