SqGrid

final class SqGrid(val rCenMin: Int, val rCenMax: Int, val cTileMin: Int, val cTileMax: Int) extends TGrid

A grid of Squares. A regular rectangle of squares.

Companion
object
trait TGrid
class Object
trait Matchable
class Any

Document{}

@inline
final def rSideMin: Int

The bottom Side Row of this TileGrid. The r value, the row number value.

The bottom Side Row of this TileGrid. The r value, the row number value.

Inherited from
TGrid
def sideRowForeach(f: Int => Unit): Unit

Foreachs over each Row of Sides. Users will not normally need to use this method directly.

Foreachs over each Row of Sides. Users will not normally need to use this method directly.

Inherited from
TGrid
@inline
final def rSideMax: Int

The top Side Row of this TileGrid. The r value, the row number.

The top Side Row of this TileGrid. The r value, the row number.

Inherited from
TGrid
final def sidesDraw(colour: Colour, lineWidth: Double): LinesDraw

This gives the all tile grid lines in a single colour and line width.

This gives the all tile grid lines in a single colour and line width.

Inherited from
TGrid
@inline
final def numOfSideRows: Int

The number of Rows of Sides.

The number of Rows of Sides.

Inherited from
TGrid

Value members

Concrete methods

@inline
final def arrIndex(sc: SqCen): Int

Gives the index into an Arr / Array of Tile data from its tile Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

Gives the index into an Arr / Array of Tile data from its tile Roord. Use sideIndex and vertIndex methods to access Side and Vertex Arr / Array data.

@inline
def arrIndex(r: Int, c: Int): Int
def cGridMax: Int
def cGridMin: Int
def foreach(f: SqCen => Unit): Unit
override def foreachCenCoord(f: TCoord => Unit): Unit
Definition Classes
override def height: Double
Definition Classes
final def iForeach(f: (SqCen, Int) => Unit, startCount: Int): Unit
final def newTileArr[A <: AnyRef](value: A)(implicit ct: ClassTag[A]): SqCenArr[A]

New immutable Arr of Tile data.

New immutable Arr of Tile data.

final def newTileArrOpt[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrOpt[A]

New Tile immutable Tile Arr of Opt data values.

New Tile immutable Tile Arr of Opt data values.

final def newTileBuffArr[A <: AnyRef](implicit ct: ClassTag[A]): SqCenArrBuff[A]
override def numCenRows: Int

Number of rows of tiles.

Number of rows of tiles.

Definition Classes
override def numCens: Int

The total number of Tiles in the tile Grid.

The total number of Tiles in the tile Grid.

Definition Classes
def rGridMax: Int
def rGridMin: Int
def rowForeach(r: Int)(f: SqCen => Unit): Unit
def rowIForeach(r: Int, startCount: Int)(f: (SqCen, Int) => Unit): Int
def tileRowLen: Int

The number of tiles in each tile row.

The number of tiles in each tile row.

override def width: Double
Definition Classes
override def xCen: Double
Definition Classes
override def xRatio: Double
Definition Classes

Inherited methods

def cenVec: Vec2
Inherited from
TGrid
final def flatMapRows[ArrT <: ArrImut[_]](f: Int => ArrT)(implicit build: ArrTFlatBuilder[ArrT]): ArrT

flatMaps over each row number.

flatMaps over each row number.

Inherited from
TGrid
final def foreachRow(f: Int => Unit): Unit

Foreach grid Row y coordinate.

Foreach grid Row y coordinate.

Inherited from
TGrid
def fullDisplayScale(dispWidth: Double, dispHeight: Double, padding: Double): Double
Inherited from
TGrid
def mapCenCoords[B, BB <: ArrImut[B]](f: TCoord => B)(implicit build: ArrTBuilder[B, BB]): BB
Inherited from
TGrid
final def mapRows[B, BB <: ArrImut[B]](f: Int => B)(implicit build: ArrTBuilder[B, BB]): BB

maps over each row number.

maps over each row number.

Inherited from
TGrid
@inline
final def numOfVertRows: Int

The number of Rows of vertices.

The number of Rows of vertices.

Inherited from
TGrid

Gives the text graphics for the row and column of each tile centre.

Gives the text graphics for the row and column of each tile centre.

Inherited from
TGrid
def yCen: Double
Inherited from
TGrid

Concrete fields

val cTileMax: Int
val cTileMin: Int
val rCenMax: Int
val rCenMin: Int