Interface: Geometry

Geometry

A Geometry describes a partitioning of the view space into tiles.

This is an abstract interface; the concrete implementations are CubeGeometry, EquirectGeometry and FlatGeometry.

Methods

type() → {string}

Returns the geometry type, used by the Stage to determine the appropriate renderer for a given geometry and view.

See also Stage#registerRenderer.

Returns:
Type
string

visibleTiles(view, level) → {Array.<Tile>}

Return the set of visible tiles for the given view and level. If a result array is supplied, it is filled in with the result and returned. Otherwise, a fresh array is returned.

Parameters:
Name Type Description
view View
level Level
Returns:

result

Type
Array.<Tile>