implicit class TileFeatureStitcher[T <: CellGrid[Int], D] extends Stitcher[TileFeature[T, D]]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TileFeatureStitcher
- Stitcher
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TileFeatureStitcher(self: TileFeature[T, D])(implicit arg0: Stitcher[T], arg1: Semigroup[D])
Value Members
- val self: TileFeature[T, D]
-
def
stitch(pieces: Iterable[(TileFeature[T, D], (Int, Int))], cols: Int, rows: Int): TileFeature[T, D]
Stitch an Iterable of tile, corner pairs into a new tile with the given number of columns and rows.
Stitch an Iterable of tile, corner pairs into a new tile with the given number of columns and rows.
The parameter 'pieces' is an iterable of (T, (Int, Int)) tuples, were the first item in the tuple is a tile and the second one is the position that the tile should occupy (given by smallest column and smallest row).
- pieces
An iterable of tile, corner pairs
- cols
The number of columns in the result tile
- rows
The number of rows in the result tile
- returns
The result tile
- Definition Classes
- TileFeatureStitcher → Stitcher