| 4 | namespace msdfgen { |
| 5 | |
| 6 | DistanceMapping DistanceMapping::inverse(Range range) { |
| 7 | double rangeWidth = range.upper-range.lower; |
| 8 | return DistanceMapping(rangeWidth, range.lower/(rangeWidth ? rangeWidth : 1)); |
| 9 | } |
| 10 | |
| 11 | DistanceMapping::DistanceMapping() : scale(1), translate(0) { } |
| 12 |
nothing calls this directly
no test coverage detected