HSide

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

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 HCoord
trait TCoord
trait ElemInt2
trait ElemIntN
trait SpecialT
trait Show2[Int, Int]
trait Show
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
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
override
def int1: Int
Definition Classes
Inherited from
Show2Base32s
override
def int2: Int
Definition Classes
Inherited from
Show2Base32s
override
def name1: String
Definition Classes
Inherited from
TCoord
override
def name2: String
Definition Classes
Inherited from
TCoord
def parenthStr: String
Inherited from
TCoord
def rcStr: String
Inherited from
TCoord
override
def show(way: Way, maxPlaces: Int, minPlaces: Int): String
Definition Classes
Inherited from
ShowProduct
@inline
override
def show1: Int
Definition Classes
Inherited from
TCoord
@inline
override
def show2: Int
Definition Classes
Inherited from
TCoord
def shows(way: Way, decimalPlaces: Int): Strings
Inherited from
Show2
override
def str: String
Definition Classes
Inherited from
ShowProduct
final override
def syntaxdepth: Int
Definition Classes
Inherited from
Show2Base32s
override
def toPt2: Pt2
Definition Classes
Inherited from
HCenOrSide
override
def toString: String
Definition Classes
Show -> Any
Inherited from
Show
override
def toVec: Vec2
Definition Classes
Inherited from
HCenOrSide

Concrete fields

val c: Int
val r: Int

Implicits

Inherited implicits

final implicit override
def showT1: ShowT[Int]
Definition Classes
Inherited from
Show2Base32s
final implicit override
def showT2: ShowT[Int]
Definition Classes
Inherited from
Show2Base32s