@arpitbhalla/rneui-base-dev
Version:
Cross Platform React Native UI Toolkit
20 lines (19 loc) • 513 B
JavaScript
;
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;