UNPKG

awayjs-display

Version:
31 lines 1.21 kB
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var PlaneClassification_1 = require("awayjs-core/lib/geom/PlaneClassification"); var BoundingVolumeBase_1 = require("../bounds/BoundingVolumeBase"); var NullBounds = (function (_super) { __extends(NullBounds, _super); function NullBounds(alwaysIn) { if (alwaysIn === void 0) { alwaysIn = true; } _super.call(this, null); this._alwaysIn = alwaysIn; } //@override NullBounds.prototype.clone = function () { return new NullBounds(this._alwaysIn); }; //@override NullBounds.prototype.isInFrustum = function (planes, numPlanes) { return this._alwaysIn; }; NullBounds.prototype.classifyToPlane = function (plane) { return PlaneClassification_1.default.INTERSECT; }; return NullBounds; }(BoundingVolumeBase_1.default)); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = NullBounds; //# sourceMappingURL=NullBounds.js.map