12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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.
- *
- * @see TileBoundingRegion
- * @see TileBoundingSphere
- * @see TileOrientedBoundingBox
- *
- * @private
- */
- function TileBoundingVolume() {
- }
- /**
- * The underlying bounding volume.
- *
- * @memberof TileBoundingVolume.prototype
- *
- * @type {Object}
- * @readonly
- */
- TileBoundingVolume.prototype.boundingVolume = undefined;
- /**
- * The underlying bounding sphere.
- *
- * @memberof TileBoundingVolume.prototype
- *
- * @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;
|