MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / calculatePoint

Function calculatePoint

scripts/web_timer_main.js:603–609  ·  view source on GitHub ↗
(cx, cy, radius, degrees)

Source from the content-addressed store, hash-verified

601}
602
603function calculatePoint(cx, cy, radius, degrees) {
604 const radians = ((degrees - 90) * Math.PI) / 180.0;
605 return {
606 x: cx + radius * Math.cos(radians),
607 y: cy + radius * Math.sin(radians),
608 };
609}
610
611function BarDateRange() {}
612

Callers 1

DonutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected