Euphoria
pack.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <optional>
5 
6 #include "base/rect.h"
7 #include "base/size2.h"
8 
9 
10 namespace eu::core
11 {
12  // place from top-left to down-right
13  std::vector<std::optional<Recti>>
14  pack
15  (
16  const size2i& container,
17  const std::vector<size2i>& to_pack
18  );
19 }
std::vector< std::optional< Recti > > pack(const size2i &container, const std::vector< size2i > &to_pack)
Definition: pack.cc:16