Common trait for hex centre and hex side coordinate. The position of these coordinates is proportional, unlike the Hex vertices positions.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
Members list
Type members
Inherited types
The type of LineSegLike that this Point can start or ends.
Value members
Inherited methods
Column number for the coordinate of a tile grid.
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
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
Row number for the coordinate of a tile grid.
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.
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.
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.
Attributes
- Inherited from:
- TCoord
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