API Docs for:
Show:

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:

Methods

getConnectedEdges

() hex_core.EdgeLocation

Returns the three edge locations connected to this vertex location

Returns:

getConnectedEdges

() hex_core.EdgeLocation

An alias for '.getConnectedEdges' - you could use it in tree traversal?

Returns:

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.