MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / wrapToTau

Function wrapToTau

src/renderers/createPieRenderer.ts:48–52  ·  view source on GitHub ↗
(thetaRad: number)

Source from the content-addressed store, hash-verified

46};
47
48const wrapToTau = (thetaRad: number): number => {
49 if (!Number.isFinite(thetaRad)) return 0;
50 const t = thetaRad % TAU;
51 return t < 0 ? t + TAU : t;
52};
53
54const parseColor = (cssColor: string, fallbackCssColor: string): Rgba => {
55 const parsed = parseCssColorToRgba01(cssColor);

Callers 1

prepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected