import { SubdivisionScheme } from "./SubdivisionScheme" ; import { SubTiles } from "./SubTiles" ; import { TileKey } from "./TileKey" ; export class TileTreeTraverse { private readonly m_subdivisionScheme : SubdivisionScheme ; constructor ( subdivisionScheme ) { this . m_subdivisionScheme = subdivisionScheme ; } subTiles ( tileKey ) { const divX = this . m_subdivisionScheme . getSubdivisionX ( tileKey . level ) ; const divY = this . m_subdivisionScheme . getSubdivisionY ( tileKey . level ) ; return new SubTiles ( tileKey , divX , divY ) ; } }