Skip to main content
Version: 7.3.0

azimuthToBearing

描述

🌐 Description

将任何方位角从北线方向(顺时针为正)进行转换,并返回一个在-180到+180度之间的角度(顺时针为正),0度为北线

🌐 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

名称类型描述
anglenumber在0到360度之间

返回

🌐 Returns

number 方位角在-180度到+180度之间

安装

🌐 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(...);