HCen

class HCen(val r: Int, val c: Int) extends HCenOrSide with TileCen

A Hex tile centre hexG grid HGrid coordinate.

Companion:
object
trait TileCen
trait HNotVert
trait HCoord
trait TileCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait TypeStr2[Int, Int]
trait ShowDec
trait Show
trait TypeStr
class Object
trait Matchable
class Any

Value members

Concrete methods

def -(operand: HCen): HCen
def active(id: AnyRef): PolygonActive

Returns a coordinate for this hex along with a step to an adjacent hex.

Returns a coordinate for this hex along with a step to an adjacent hex.

def decText(fontSize: Double, colour: Colour): TextGraphic
override def equals(that: Any): Boolean
Definition Classes
HCoord -> Any
def fill(colour: Colour): PolygonFill
def findStep(operand: HCen): OptRef[HStep]

Optionally returns the Step value of the HCen if it is an adjacent HCen else returns the safe null value.

Optionally returns the Step value of the HCen if it is an adjacent HCen else returns the safe null value.

The polygon of this tile, specified in HVert coordinates.

The polygon of this tile, specified in HVert coordinates.

The polygon of this hex tile if it is part of a regular grid.

The polygon of this hex tile if it is part of a regular grid.

def step(st: HStep): HCen

Step to adjacent hex tile. Will throw exception on illegal value.

Step to adjacent hex tile. Will throw exception on illegal value.

def stepOpt(st: HStep)(implicit grid: HGrid): Option[HCen]

Step to adjacent hex tile.

Step to adjacent hex tile.

def text32(fontSize: Double, colour: Colour): TextGraphic
override def typeStr: String
Definition Classes
def v1: HVert
def v2: HVert
def v3: HVert
def v4: HVert
def v5: HVert
def v6: HVert

The vertex sequence in HVert coordinates. This starts with the upper right vertex and proceeds clockwise to the upper vertex.

The vertex sequence in HVert coordinates. This starts with the upper right vertex and proceeds clockwise to the upper vertex.

Inherited methods

def canEqual(a: Any): Boolean
Inherited from:
HCoord
def el1Show(style: ShowStyle, maxPlaces: Int): String
Inherited from:
Show2
def el2Show(style: ShowStyle, maxPlaces: Int): String
Inherited from:
Show2
Inherited from:
Show2
Inherited from:
Show2
override def hashCode: Int
Definition Classes
HCoord -> Any
Inherited from:
HCoord
final override def int1: Int
Definition Classes
Inherited from:
ShowElemInt2
final override def int2: Int
Definition Classes
Inherited from:
ShowElemInt2
override def name1: String
Definition Classes
Inherited from:
TileCoord
override def name2: String
Definition Classes
Inherited from:
TileCoord
override def opt1: Option[Int]

The optional default value for parameter 1.

The optional default value for parameter 1.

Definition Classes
Inherited from:
Show2
override def opt2: Option[Int]

The optional default value for parameter 2.

The optional default value for parameter 2.

Definition Classes
Inherited from:
Show2
def parenthStr: String
Inherited from:
TileCoord
def rcStr: String
Inherited from:
TileCoord
def rcStr32: String
Inherited from:
TileCoord
override def show(style: ShowStyle): String
Definition Classes
Inherited from:
ShowDec
@inline
override def show1: Int
Definition Classes
Inherited from:
TileCoord
@inline
override def show2: Int
Definition Classes
Inherited from:
TileCoord
override def showDec(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from:
ShowProductDec
def showDec(style: ShowStyle, maxPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowDecT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowDecT type class instances.

Inherited from:
ShowDec
def showElemStrDecs(way: ShowStyle, decimalPlaces: Int): Strings
Inherited from:
Show2
override def showElemStrs(way: ShowStyle): Strings
Definition Classes
Inherited from:
ShowProductDec
def showSemisNameDecs(maxPlaces: Int, minPlaces: Int): String
Inherited from:
ShowProductDec
def showSemisNames: String
Inherited from:
ShowProduct
override def str: String
Definition Classes
Inherited from:
ShowDec
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Inherited from:
ShowDec
def str1: String

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

Inherited from:
ShowDec
def str2: String

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

Inherited from:
ShowDec
def str3: String

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Inherited from:
ShowDec
def subR(rDelta: Int): HCoord
Inherited from:
HCoord
final override def syntaxDepth: Int
Definition Classes
Inherited from:
ShowElemInt2
override def toPt2: Pt2
Definition Classes
Inherited from:
HNotVert
override def toString: String
Definition Classes
Show -> Any
Inherited from:
Show
override def toVec: Vec2
Definition Classes
Inherited from:
HNotVert
def view(pxScale: Double): HGridView
Inherited from:
HCoord

Concrete fields

val c: Int
val r: Int

Implicits

Inherited implicits

final implicit override def showT1: ShowDecT[Int]
Definition Classes
Inherited from:
ShowElemInt2
final implicit override def showT2: ShowDecT[Int]
Definition Classes
Inherited from:
ShowElemInt2