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.

Members

type

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

Known values are "cube", "equirect" and "flat".

See also Stage#registerRenderer.

Properties:
Type Description
string

Methods

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>