/** @packageDocumentation * @module OrbitGT */ /** @internal */ declare type int32 = number; import { Coordinate } from "../../spatial/geom/Coordinate"; import { iComparator } from "../../system/runtime/iComparator"; import { TileIndex } from "../model/TileIndex"; import { ViewTree } from "./ViewTree"; /** @internal */ export interface IProjectToViewForSort { projectToViewForSort(point: Coordinate): void; } /** * Class TileLoadSorter sorts file tiles by their angle with the forward view direction (smaller angles first to load tiles in the view center first). * * @internal */ export declare class TileLoadSorter implements iComparator { private viewProjector; /** @ignore */ static readonly _CLASSNAME_: string; private isiComparator_TileIndex_Instance; /** The global tile index */ private tileIndex; /** The model transformation */ private projectToView; /** The view projection */ /** * Create a new sorter. * @param tileIndex the global tile index. * @param modelTransform the model transformation. * @param projection the view projection. */ constructor(tileIndex: ViewTree, viewProjector: IProjectToViewForSort); /** * Get the position of a tile in the view (camera) space. * @param tile the grid index of the tile. * @param dX the x grid index offset. * @param dY the y grid index offset. * @param dZ the z grid index offset. * @return the position in view space. */ private getTilePosition; /** * Get the radius of a tile. * @param tile the grid index of the tile. * @param tilePosition the position of the tile in view space. * @return the radius of the tile. */ private getTileRadius; /** * Get the score of a tile. * @param tile the tile index. * @return the score (the lower the better). */ private getScore; compare(tile1: TileIndex, tile2: TileIndex): int32; } export {}; //# sourceMappingURL=TileLoadSorter.d.ts.map