Class: LodBoundaryCache
A cache of LodBoundary objects.
Constructors
constructor
• new LodBoundaryCache(size
, lodDistanceThresholds
, lodVectorCountTargets
): LodBoundaryCache
Constructor.
Parameters
Name | Type | Description |
---|---|---|
size | number | The maximum size of this cache. |
lodDistanceThresholds | readonly number [] | The Douglas-Peucker distance thresholds, in great-arc radians, for each LOD level used by this cache's LodBoundary objects. |
lodVectorCountTargets | readonly number [] | The vector count targets for each LOD level used by this cache's LodBoundary objects. |
Returns
Defined in
src/sdk/navigation/LodBoundaryCache.ts:17
Properties
lodDistanceThresholds
• Readonly
lodDistanceThresholds: readonly number
[]
The Douglas-Peucker distance thresholds, in great-arc radians, for each LOD level used by this cache's LodBoundary objects.
Defined in
src/sdk/navigation/LodBoundaryCache.ts:17
lodVectorCountTargets
• Readonly
lodVectorCountTargets: readonly number
[]
The vector count targets for each LOD level used by this cache's LodBoundary objects.
Defined in
src/sdk/navigation/LodBoundaryCache.ts:17
size
• Readonly
size: number
The maximum size of this cache.
Defined in
src/sdk/navigation/LodBoundaryCache.ts:17
Methods
get
▸ get(facility
): LodBoundary
Retrieves a LodBoundary from this cache corresponding to a boundary facility. If the requested LodBoundary does not exist, it will be created and added to this cache.
Parameters
Name | Type | Description |
---|---|---|
facility | BoundaryFacility | A boundary facility. |
Returns
The LodBoundary corresponding to facility
.
Defined in
src/sdk/navigation/LodBoundaryCache.ts:26