MCPcopy
hub / github.com/chartjs/Chart.js / toRadians

Function toRadians

src/helpers/helpers.math.ts:95–97  ·  view source on GitHub ↗
(degrees: number)

Source from the content-addressed store, hash-verified

93}
94
95export function toRadians(degrees: number) {
96 return degrees * (PI / 180);
97}
98
99export function toDegrees(radians: number) {
100 return radians * (180 / PI);

Callers 11

_getRotationMethod · 0.85
_getCircumferenceMethod · 0.85
_computeAngleMethod · 0.85
fitMethod · 0.85
_tickSizeMethod · 0.85
_computeLabelItemsMethod · 0.85
getIndexAngleMethod · 0.85
computeTickLimitMethod · 0.85
relativeLabelSizeFunction · 0.85
_getLabelSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected