Socket
Socket
Sign inDemoInstall

turf-is-clockwise

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-is-clockwise - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.travis.yml

2

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc