degreesToRadians
Description
Converts an angle in degrees to radians
Parameters
Name | Type | Description |
---|---|---|
degrees | number | angle between 0 and 360 degrees |
Returns
number angle in radians
Installation
$ npm install @turf/helpers
import { degreesToRadians } from "@turf/helpers";
const result = degreesToRadians(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.degreesToRadians(...);