turf-is-clockwise
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "turf-is-clockwise", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "turf isClockwise module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
turf-isClockwise | ||
================ | ||
[![Build Status](https://travis-ci.org/Turfjs/turf-isClockwise.svg?branch=master)](https://travis-ci.org/Turfjs/turf-isClockwise) | ||
Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise. | ||
```js | ||
var isClockwise = require('turf-is-clockwise') | ||
var clockwiseRing = [[0,0],[1,1],[1,0],[0,0]] | ||
var counterClockwiseRing = [[0,0],[1,0],[1,1],[0,0]] | ||
var isCW = isClockwise(clockwiseRing) | ||
var counterCW = isClockwise(counterClockwiseRing) | ||
console.log(isCW) // true | ||
console.log(counterCW) // false | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3587
7
18