1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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;
|