emilib
marching_squares.hpp
1 // By Emil Ernerfeldt 2017
2 // LICENSE:
3 // This software is dual-licensed to the public domain and under the following
4 // license: you are granted a perpetual, irrevocable license to copy, modify,
5 // publish, and distribute this file as you see fit.
6 
7 #pragma once
8 
9 #include <vector>
10 
11 namespace emilib {
12 
17 std::vector<float> marching_squares(size_t width, size_t height, const float* iso);
18 
20 float calc_area(size_t num_line_segments, const float* xy);
21 
22 } // namespace emilib
Definition: coroutine.hpp:18