Skip to main content
Version: 6.5.0

degreesToRadians

Description

Converts an angle in degrees to radians

Parameters

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