(a: number)
| 106 | * @public |
| 107 | */ |
| 108 | export function canonicalizeRotation(a: number) { |
| 109 | a = a % PI2 |
| 110 | if (a < 0) { |
| 111 | a = a + PI2 |
| 112 | } else if (a === 0) { |
| 113 | // prevent negative zero |
| 114 | a = 0 |
| 115 | } |
| 116 | return a |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Get the clockwise angle distance between two angles. |
no outgoing calls
searching dependent graphs…