computeAny method
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;