(x float64)
| 219 | } |
| 220 | |
| 221 | func abs(x float64) float64 { |
| 222 | if x < 0 { |
| 223 | return -x |
| 224 | } |
| 225 | return x |
| 226 | } |
| 227 | |
| 228 | // fitDimensions returns new dimensions that fit within maxW×maxH while |
| 229 | // preserving the aspect ratio of w×h. |
no outgoing calls
no test coverage detected