Skip to content

galavi / pickPyramidLevel

Function: pickPyramidLevel()

pickPyramidLevel(effectiveScale, levelRange, levelScales?): number

Defined in: utils/tile.ts:91

Choose the coarsest pyramid level whose sampling density still satisfies effectiveScale. With no levelScales, behaves as a uniform power-of-two pyramid: levelRange[1] - floor(log2(effectiveScale)).

Parameters

effectiveScale

number

levelRange

readonly [number, number]

levelScales?

readonly Vec3[]

Returns

number

Released under the GPL-3.0 License.