UNPKG

igniteui-react-core

Version:
30 lines (29 loc) 1.29 kB
/* 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 { __extends } from "tslib"; import { EdgeClipper } from "./EdgeClipper"; import { Point_$type, markType } from "./type"; /** * @hidden */ var RightClipper = /** @class */ /*@__PURE__*/ (function (_super) { __extends(RightClipper, _super); function RightClipper() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.m = 0; return _this; } RightClipper.prototype.e = function (a) { return a.x <= this.m; }; RightClipper.prototype.k = function (a, b) { return { $type: Point_$type, x: this.m, y: a.y + (b.y - a.y) * (this.m - a.x) / (b.x - a.x) }; }; RightClipper.$t = markType(RightClipper, 'RightClipper', EdgeClipper.$); return RightClipper; }(EdgeClipper)); export { RightClipper };