Interface: Tile

Tile

A Tile is one of the partitions of a Geometry.

This is an abstract interface; the concrete implementations are CubeTile, EquirectTile and FlatTile.

Methods

(static) cmp(tile1, tile2) → {number}

Tile comparison function. Sorts tiles in bottom-to-top stacking order.

Parameters:
Name Type Description
tile1 Tile
tile2 Tile
Returns:
Type
number

(static) equals(tile1, tile2) → {boolean}

Tile equality predicate.

Parameters:
Name Type Description
tile1 Tile
tile2 Tile
Returns:
Type
boolean

(static) hash(tile) → {number}

Tile hash function.

Parameters:
Name Type Description
tile Tile
Returns:
Type
number