/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { Base, markType } from "igniteui-react-core/ES5/type";
/**
 * @hidden
 */
var ViewportUtils = /** @class */ (function (_super) {
    tslib_1.__extends(ViewportUtils, _super);
    function ViewportUtils() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ViewportUtils.c = function (a, b, c) {
        return c.left + c.width * (a - b.left) / b.width;
    };
    ViewportUtils.a = function (a, b, c) {
        return ((a - c.left) * b.width / c.width) + b.left;
    };
    ViewportUtils.f = function (a, b, c) {
        return c.top + c.height * (a - b.top) / b.height;
    };
    ViewportUtils.e = function (a, b, c) {
        return ((a - c.top) * b.height / c.height) + b.top;
    };
    ViewportUtils.d = function (a, b, c) {
        return c.width * a / b.width;
    };
    ViewportUtils.b = function (a, b, c) {
        return b.width * a / c.width;
    };
    ViewportUtils.g = function (a, b, c) {
        return c.height * a / b.height;
    };
    ViewportUtils.$t = markType(ViewportUtils, 'ViewportUtils');
    return ViewportUtils;
}(Base));
export { ViewportUtils };
