hefeihvac_java/node_modules/zrender/src/contain/util.ts

10 lines
170 B
TypeScript
Raw Normal View History

2024-04-07 18:15:00 +08:00
const PI2 = Math.PI * 2;
export function normalizeRadian(angle: number): number {
angle %= PI2;
if (angle < 0) {
angle += PI2;
}
return angle;
}