Sign in

朱园亮 / erp-mobile · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • erp-mobile
  • node_modules
  • zrender
  • src
  • contain
  • util.ts
  • erp项目移动端初始化
    0cef310f
    朱园亮 authored
    2025-10-30 15:55:06 +0800  
    Browse Files »
util.ts 170 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10

const PI2 = Math.PI * 2;

export function normalizeRadian(angle: number): number {
    angle %= PI2;
    if (angle < 0) {
        angle += PI2;
    }
    return angle;
}