project/node_modules/zrender/lib/contain/util.js

9 lines
151 B
JavaScript
Raw Normal View History

2024-07-14 15:48:34 +08:00
var PI2 = Math.PI * 2;
export function normalizeRadian(angle) {
angle %= PI2;
if (angle < 0) {
angle += PI2;
}
return angle;
}