Class: Cache

BIM.Junction. Cache

A utility class for caching path junctions.

The aim of this class is to minimise new memory allocations when regenerating paths by reusing a cache of previously created junctions. It is typically used by elements that need to dynamically regenerate paths for dependant children.


new Cache()

Author:
  • drajmarsh
See:

Methods


_createNewPoint()

Creates a new path junction instance for the cache.

Returns:

Returns a new path junction instance.

Type
BIM.Junction