import { SubdivisionScheme } from "./SubdivisionScheme" ; class HalfQuadTreeSubdivisionScheme implements SubdivisionScheme { getSubdivisionX ( ) { return 2 ; } getSubdivisionY ( level ) { return level === 0 ? 1 : 2 ; } getLevelDimensionX ( level ) { return 1 << level ; } getLevelDimensionY ( level ) { return level !== 0 ? 1 << ( level - 1 ) : 1 ; } } /**
 * A  SubdivisionScheme used to represent half quadtrees.
 * This particular subdivision scheme is
 * used by the HERE tiling scheme.
  export const halfQuadTreeSubdivisionScheme = new HalfQuadTreeSubdivisionScheme ( ) ;