computeAny method

double computeAny(
  1. double any,
  2. Size viewport
)

Implementation

double computeAny(double any, Size viewport) => viewport.width >= viewport.height ? landscapePercent * any + landscapeWpc * viewport.width + landscapeHpc * viewport.height + landscapePx :
 portraitPercent * any + portraitWpc * viewport.width + portraitHpc * viewport.height + portraitPx;