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
名称 | 类型 | 描述 |
---|---|---|
bearing | number | 角度,介于 -180 到 +180 之间度 |
返回
¥Returns
number 角度,介于 0 到 360 度之间
¥number angle between 0 and 360 degrees
安装
¥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(...);