forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuadtreeOccluders.js
40 lines (37 loc) · 1.1 KB
/
QuadtreeOccluders.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*global define*/
define([
'../Core/Cartesian3',
'../Core/defineProperties',
'../Core/EllipsoidalOccluder'
], function(
Cartesian3,
defineProperties,
EllipsoidalOccluder) {
'use strict';
/**
* 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);
}
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;
}
}
});
return QuadtreeOccluders;
});