@turf/angle v7.2.0
@turf/angle
angle
Finds the angle formed by two adjacent segments defined by 3 points. The result will be the (positive clockwise)
angle with origin on the startPoint-midPoint segment, or its explementary angle if required.
Parameters
startPointCoord Start Point CoordinatesmidPointCoord Mid Point CoordinatesendPointCoord End Point CoordinatesoptionsObject Optional parameters (optional, default{})
Examples
turf.angle([5, 5], [5, 6], [3, 4]);
//=45Returns number Angle between the provided points, or its explementary.
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/angleOr install the Turf module that includes it as a function:
$ npm install @turf/turfDiagrams

10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
8 years ago
8 years ago
8 years ago