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 HVOffsetDeltas. An HVert is shared between 3 hex tiles and 3 HSeps. An HCorner 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

Value members

Concrete methods

def numVerts: Int
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): HvOffset

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

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

Attributes

def v2(hVert: HVert): HvOffset

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

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

Attributes

def vLast(hVert: HVert): HvOffset

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

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

Attributes

def verts(hVert: HVert): HvOffsetArr

Concrete fields

val unsafeInt: Int