Function join_directions

  • Returns the diagonal value for its component directions Example: Input: 6, 0 (up, right) / Output: 7 (up_right)

    Parameters

    Returns directions

    Diagonal direction value