HCorner

ostrat.prid.phex.HCorner
See theHCorner companion object
final class HCorner(val unsafeInt: Int) extends AnyVal

Hex tile corner. A corner encodes 1 or 2 HVOffsets. An HVert is shared between 3 hex tiles and 3 HSides. An HCoroner only applies to a single hex tile. Hence unless it is on the edge of the HGridSys there will be 3 HCorners associated with each HVert. This class encodes a single or two HVertoffsets.

Attributes

Companion:
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any
def v1(hVert: HVert): HVAndOffset

Returns the first, going clockwise and possibly only HVOffset of this corner

Returns the first, going clockwise and possibly only HVOffset of this corner

Attributes

def v2(hVert: HVert): HVAndOffset

Returns the second, going clockwise HVOffset of this corner. throws an exception if there is only 1.

Returns the second, going clockwise HVOffset of this corner. throws an exception if there is only 1.

Attributes

def vLast(hVert: HVert): HVAndOffset

Returns the second, going clockwise HVOffset of this corner if there is a second HVOffset on this HCorner else returns first.

Returns the second, going clockwise HVOffset of this corner if there is a second HVOffset on this HCorner else returns first.

Attributes

Concrete fields