HSide

class HSide(val r: Int, val c: Int) extends HCenOrSide with TileSide

A Hex side coordinate in a Hex Grid. So Side 1 on its primary Hex tile goes from Vert 6 to 1 while it is Side 4 on its secondary Hex tile and goes from Vertex 4 to vertex 3 So Side 2 on its primary Hex tile goes from Vert 1 to 2 while it is Side 5 on its secondary Hex tile and goes from Vertex 5 to vertex 4 So Side 3 on its primary Hex tile goes from Vert 2 to 3 while it is Side 4 on its secondary Hex tile and goes from Vertex 6 to vertex 4

Companion:
object
trait TileSide
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

Returns the Hex coordinate Line segment for this Hex Side.

Returns the Hex coordinate Line segment for this Hex Side.

def draw(colour: Colour, lineWidth: Double): LineSegDraw

Draws a LineSeg, returning a LineSegDraw for a regular Hex tile grid.

Draws a LineSeg, returning a LineSegDraw for a regular Hex tile grid.

Returns a LineSeg for a regular Hex tile grid.

Returns a LineSeg for a regular Hex tile grid.

def tiles: (HCen, HCen)

Returns the 2 adjacent HCens of this hex Side.

Returns the 2 adjacent HCens of this hex Side.

override def typeStr: String
Definition Classes

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 equals(obj: Any): Boolean
Definition Classes
HCoord -> Any
Inherited from:
HCoord
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