azimuthToBearing
描述
¥Description
Converts any azimuth angle from the north line direction (positive clockwise) and returns an angle between -180 and +180 degrees (positive clockwise), 0 being the north line
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
angle | number | between 0 and 360 degrees |
返回
¥Returns
number bearing between -180 and +180 degrees
安装
¥Installation
$ npm install @turf/helpers
import { azimuthToBearing } from "@turf/helpers";
const result = azimuthToBearing(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.azimuthToBearing(...);