# bearingToAzimuth

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
转换从正北方向(顺时针正方向)开始的任何方位角度,并返回0-360度(顺时针正方向)之间的角度,0为正北

> npm install @turf/helpers

参数

参数 类型 描述
bearing number -180到180度之间

返回

number - 0到360度之间

turf.bearingToAzimuth(-45); // 315
Last Updated: 4/10/2024, 11:27:54 PM