πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

@turf/boolean-parallel

Package Overview
Dependencies
Maintainers
6
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-parallel

turf boolean-parallel module

6.4.0
Source
npm
Version published
Weekly downloads
536K
-16.69%
Maintainers
6
Weekly downloads
Β 
Created
Source

@turf/boolean-parallel

booleanParallel

Boolean-Parallel returns True if each segment of line1 is parallel to the correspondent segment of line2

Parameters

  • line1 (Geometry | Feature<LineString>) GeoJSON Feature or Geometry
  • line2 (Geometry | Feature<LineString>) GeoJSON Feature or Geometry

Examples

var line1 = turf.lineString([[0, 0], [0, 1]]);
var line2 = turf.lineString([[1, 0], [1, 1]]);

turf.booleanParallel(line1, line2);
//=true

Returns boolean true/false if the lines are parallel

This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @turf/boolean-parallel

Or install the Turf module that includes it as a function:

$ npm install @turf/turf

Keywords

turf

FAQs

Package last updated on 17 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts