Packages

trait Stitcher[T] extends Serializable

The Stitcher base trait.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stitcher
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def stitch(pieces: Iterable[(T, (Int, Int))], cols: Int, rows: Int): T

    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