appdimens-dynamic

//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.core/AspectRatioLookup/lookup

lookup

fun lookup(normalizedAr: Float): Float?

Binary search with tolerance. O(log n) ≈ 7 comparisons for 111 entries.

ln(normalizedAr) from the table, or null if not within tolerance.

currentAr / 1.78f