Skip to main content
Version: 7.3.0

bearingToAzimuth

描述

🌐 Description

将任何从北线方向的方位角(顺时针为正)转换,并返回一个介于0-360度之间的角度(顺时针为正),0度为北线

🌐 Converts any bearing angle from the north line direction (positive clockwise) and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line

参数

🌐 Parameters

名称类型描述
bearingnumber角度,在-180度到+180度之间

返回

🌐 Returns

number 0 到 360 度之间的角度

安装

🌐 Installation

$ npm install @turf/helpers

import { bearingToAzimuth } from "@turf/helpers";
const result = bearingToAzimuth(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.bearingToAzimuth(...);