(deg, over360)
| 32 | }; |
| 33 | |
| 34 | export const toRad = function(deg, over360) { |
| 35 | |
| 36 | over360 = over360 || false; |
| 37 | deg = over360 ? deg : (deg % 360); |
| 38 | return deg * PI / 180; |
| 39 | }; |
| 40 | |
| 41 | // Return a random integer from the interval [min,max], inclusive. |
| 42 | export const random = function(min, max) { |
no outgoing calls
no test coverage detected