You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
875 B
JavaScript
31 lines
875 B
JavaScript
import Cartesian3 from "../Core/Cartesian3.js";
|
|
import EllipsoidalOccluder from "../Core/EllipsoidalOccluder.js";
|
|
|
|
/**
|
|
* A set of occluders that can be used to test quadtree tiles for occlusion.
|
|
*
|
|
* @alias QuadtreeOccluders
|
|
* @constructor
|
|
* @private
|
|
*
|
|
* @param {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid that potentially occludes tiles.
|
|
*/
|
|
function QuadtreeOccluders(options) {
|
|
this._ellipsoid = new EllipsoidalOccluder(options.ellipsoid, Cartesian3.ZERO);
|
|
}
|
|
|
|
Object.defineProperties(QuadtreeOccluders.prototype, {
|
|
/**
|
|
* Gets the {@link EllipsoidalOccluder} that can be used to determine if a point is
|
|
* occluded by an {@link Ellipsoid}.
|
|
* @type {EllipsoidalOccluder}
|
|
* @memberof QuadtreeOccluders.prototype
|
|
*/
|
|
ellipsoid: {
|
|
get: function () {
|
|
return this._ellipsoid;
|
|
},
|
|
},
|
|
});
|
|
export default QuadtreeOccluders;
|