Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | 1x 1x 1x 1x 1x 1x 1x 1x | import DeveloperError from "../Core/DeveloperError.js";
/**
* Defines a bounding volume for a tile. This type describes an interface
* and is not intended to be instantiated directly.
*
* @alias TileBoundingVolume
* @constructor
*
* @see TileBoundingRegion
* @see TileBoundingSphere
* @see TileOrientedBoundingBox
*
* @private
*/
function TileBoundingVolume() {}
/**
* The underlying bounding volume.
*
* @type {object}
* @readonly
*/
TileBoundingVolume.prototype.boundingVolume = undefined;
/**
* The underlying bounding sphere.
*
* @type {BoundingSphere}
* @readonly
*/
TileBoundingVolume.prototype.boundingSphere = undefined;
/**
* Calculates the distance between the tile and the camera.
*
* @param {FrameState} frameState The frame state.
* @return {number} The distance between the tile and the camera, in meters.
* Returns 0.0 if the camera is inside the tile.
*/
TileBoundingVolume.prototype.distanceToCamera = function (frameState) {
DeveloperError.throwInstantiationError();
};
/**
* Determines which side of a plane this volume is located.
*
* @param {Plane} plane The plane to test against.
* @returns {Intersect} {@link Intersect.INSIDE} if the entire volume is on the side of the plane
* the normal is pointing, {@link Intersect.OUTSIDE} if the entire volume is
* on the opposite side, and {@link Intersect.INTERSECTING} if the volume
* intersects the plane.
*/
TileBoundingVolume.prototype.intersectPlane = function (plane) {
DeveloperError.throwInstantiationError();
};
/**
* Creates a debug primitive that shows the outline of the tile bounding
* volume.
*
* @param {Color} color The desired color of the primitive's mesh
* @return {Primitive}
*/
TileBoundingVolume.prototype.createDebugVolume = function (color) {
DeveloperError.throwInstantiationError();
};
export default TileBoundingVolume;
|