/// <summary>Returns whether the specified hex coordinates are "on" a board of the given dimensions.</summary> /// <param name="mapSizeHexes">The hex dimensions of the board.</param> /// <param name="userCoords">The User coordinates of the hex of interest.</param> public static bool IsOnboard(this HexSize mapSizeHexes, IntVector2D userCoords) => mapSizeHexes.IsOnboard(userCoords.X, userCoords.Y);
/// <summary>Returns whether the specified hex coordinates are "on" a board of the given dimensions.</summary> /// <param name="mapSizeHexes">The hex dimensions of the board.</param> /// <param name="hexCoords">The hex coordinates of the hex of interest.</param> public static bool IsOnboard(this HexSize mapSizeHexes, HexCoords hexCoords) => mapSizeHexes.IsOnboard(hexCoords.User);