hex_core.VertexLocation Class
This class represents a vertex location. It consists of a hex location and a vertex direction. Instead of (hexLocation, direction) you can use (x, y, direction).
Constructor
hex_core.VertexLocation
(
-
hexLocation
-
direction
Parameters:
-
hexLocation
hex_core.HexLocationThe location of the parent hex
-
direction
hex_core.VertexDirectionThe direction of the vertex relative to the hex
Item Index
Methods
getConnectedEdges
()
hex_core.EdgeLocation
Returns the three edge locations connected to this vertex location
Returns:
hex_core.EdgeLocation:
[Array]
getConnectedEdges
()
hex_core.EdgeLocation
An alias for '.getConnectedEdges' - you could use it in tree traversal?
Returns:
hex_core.EdgeLocation:
[Array]
getEquivalenceGroup
()
hex_core.VertexLocation
This function returns this VertexLocation as well as the VertexLocation for the other 2 hexes that this VertexLocation touches.
Returns:
hex_core.VertexLocation:
[Array] The list of all VertexLocation that this object is equivalent to (reflexive). Size = 3.