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

Function rThetaToXY

src/elements/element.arc.ts:94โ€“99  ยท  view source on GitHub โ†—

* Convert (r, ๐œƒ) to (x, y)

(r: number, theta: number, x: number, y: number)

Source from the content-addressed store, hash-verified

92 * Convert (r, ๐œƒ) to (x, y)
93 */
94function rThetaToXY(r: number, theta: number, x: number, y: number) {
95 return {
96 x: x + r * Math.cos(theta),
97 y: y + r * Math.sin(theta),
98 };
99}
100
101
102/**

Callers 1

pathArcFunction ยท 0.85

Calls

no outgoing calls

Tested by

no test coverage detected