A Hex tile centre hex grid HGrid coordinate. This is the tile coordinate and is all that's needed for simple grids, but is usually referred to as an HCen to destingush it form HSides, HVerts and HCoordOthers In Function parameters, the convention is to place the HCens as the first parameter for example f: (HCen, Pt2) => B.
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait TCentrait HCenOrSidetrait TCenOrSidetrait HNotVerttrait HCoordtrait Comparable[HCoord]trait TCoordtrait ShowElemInt2trait Int2Elemtrait IntNElemtrait ValueNElemtrait SpecialTtrait TypeStrNtrait ShowNtrait ShowDectrait Showtrait TypeStrtrait Pointclass Objecttrait Matchableclass Any
Members list
Type members
Inherited types
The type of LineSegLike that this Point can start or ends.
Value members
Concrete methods
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation.
Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that
objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int.
(o1.hashCode.equals(o2.hashCode)
).
Attributes
- that
the object to compare against this object for equality.
- Returns:
true
if the receiver object is equivalent to the argument;false
otherwise.- Definition Classes
- HCoord -> Any
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.
Attributes
Step to adjacent hex tile.
Step to adjacent hex tile.
Attributes
The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.
Step to adjacent hex tile. Will throw exception on illegal value.
Step to adjacent hex tile. Will throw exception on illegal value.
Attributes
Inherited methods
Calculate a hash code value for the object.
Calculate a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet
not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
.
However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have
identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure
to verify that the behavior is consistent with the equals
method.
Attributes
Attributes
- Definition Classes
- Inherited from:
- ShowElemInt2
Attributes
- Definition Classes
- Inherited from:
- ShowElemInt2
1st parameter name.
2nd parameter name.
The optional default value for parameter 1.
The optional default value for parameter 2.
Attributes
- Inherited from:
- TCoord
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.
Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.
Attributes
- Inherited from:
- ShowN
Attributes
- Inherited from:
- ShowN
Show with decimal precision of 0 places.
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.
Attributes
- Inherited from:
- ShowDec
Show with decimal precision of 2 places padding with zeros if necessary.
Show with decimal precision of 2 places padding with zeros if necessary.
Attributes
- Inherited from:
- ShowDec
Show with decimal precision of 3 places padding with zeros if necessary.
Show with decimal precision of 3 places padding with zeros if necessary.
Attributes
- Inherited from:
- ShowDec
Attributes
- Definition Classes
- Inherited from:
- ShowElemInt2
Uses the implicit HGridSysFlat to convert to Pt2.
Implicits
Inherited implicits
The ShowT type class instance for the 1st element of this 2 element product.
The ShowT type class instance for the 1st element of this 2 element product.
Attributes
- Definition Classes
- Inherited from:
- ShowElemInt2
The ShowT type class instance for the 2nd element of this 2 element product.
The ShowT type class instance for the 2nd element of this 2 element product.
Attributes
- Definition Classes
- Inherited from:
- ShowElemInt2