aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-05-22 16:47:38 +0200
committerAdrian Kummerlaender2016-05-22 16:47:38 +0200
commit9577bd535a18be9c3348f63ebaf434e1f14b8bcd (patch)
tree6033baebe85679d623eec5bcbb16f8f06cedc248 /src
parente565d4e44c8013607a372c0f2a4af0eee8164843 (diff)
downloadvoronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.tar
voronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.tar.gz
voronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.tar.bz2
voronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.tar.lz
voronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.tar.xz
voronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.tar.zst
voronoi-9577bd535a18be9c3348f63ebaf434e1f14b8bcd.zip
Introduce `imgen::vector` tuple alias, generate metrics as double
Diffstat (limited to 'src')
-rw-r--r--src/imgen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imgen.h b/src/imgen.h
index 6954239..20705b4 100644
--- a/src/imgen.h
+++ b/src/imgen.h
@@ -7,7 +7,8 @@
namespace imgen {
-using colored_vector = std::tuple<int, int, color>;
+using vector = std::tuple<std::ptrdiff_t, std::ptrdiff_t>;
+using colored_vector = std::tuple<std::ptrdiff_t, std::ptrdiff_t, color>;
void write_ppm(
const std::string& path,