MCPcopy Create free account
hub / github.com/CoderOpen/waimai / adjust

Function adjust

front/components/u-charts/u-charts.js:195–203  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

193
194function isInAngleRange(angle, startAngle, endAngle) {
195 function adjust(angle) {
196 while (angle < 0) {
197 angle += 2 * Math.PI;
198 }
199 while (angle > 2 * Math.PI) {
200 angle -= 2 * Math.PI;
201 }
202 return angle;
203 }
204 angle = adjust(angle);
205 startAngle = adjust(startAngle);
206 endAngle = adjust(endAngle);

Callers 1

isInAngleRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected