UNPKG

@arpitbhalla/rneui-base-dev

Version:
20 lines (19 loc) 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Rect = void 0; var Rect = (function () { function Rect(x, y, width, height) { this.x = x; this.y = y; this.width = width; this.height = height; } Rect.prototype.containsPoint = function (x, y) { return (x >= this.x && y >= this.y && x <= this.x + this.width && y <= this.y + this.height); }; return Rect; }()); exports.Rect = Rect;