Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Hex.Direction Clockwise(this Hex.Direction, int)

Declaration

public static Hex.Direction Clockwise(
    this Hex.Direction dir,
    int amount = 1
)

Summary

Returns a new Hex.Direction which is the specified multiple of 60° clockwise from the current direction.

Parameters

this Hex.Directiondir Original starting direction.
intamount Number of 60° turns to perform. Use negative numbers to go counter-clockwise.