Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: IEnumerable<Hex.Direction> GetEdges(int)

  • Declared in: RT.Coordinates.Hex

Declaration

public IEnumerable<Hex.Direction> GetEdges(
    int sideLength
)

Summary

Assuming a Hex.LargeHexagon(int, Hex) structure of side length sideLength, returns a collection specifying which edges of the structure the current hex tile is adjacent to.

Remarks

If the current hex tile is in a corner of the structure, two values are returned; otherwise, only one.