You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@turf/boolean-parallel

Package Overview
Dependencies
Maintainers
7
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

7.0.0-alpha.115
Source
npmnpm
Version published
Weekly downloads
744K
3.75%
Maintainers
7
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 single module individually:

$ npm install @turf/boolean-parallel

Or install the all-encompassing @turf/turf module that includes all modules as functions:

$ npm install @turf/turf

Keywords

turf

FAQs

Package last updated on 23 Apr 2024

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