MCPcopy Create free account
hub / github.com/chartjs/Chart.js / _angleDiff

Function _angleDiff

src/helpers/helpers.math.ts:152–154  ·  view source on GitHub ↗
(a: number, b: number)

Source from the content-addressed store, hash-verified

150 * @private
151 */
152export function _angleDiff(a: number, b: number) {
153 return (a - b + PITAU) % TAU - PI;
154}
155
156/**
157 * Normalize angle to be between 0 and 2*PI

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected