From 30e0d337eb9376d424ca6b02b0028298f24c38dc Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 5 Apr 2020 22:22:11 -0400 Subject: Add Lx and Ly to graph data output. --- lib/src/graph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/graph.cpp b/lib/src/graph.cpp index a84084f..1426609 100644 --- a/lib/src/graph.cpp +++ b/lib/src/graph.cpp @@ -482,6 +482,7 @@ graph const graph::rotate() { std::string graph::write() const { std::string output; + output += "\"Lx\"->" + std::to_string(L.x) + ",\"Ly\"->" + std::to_string(L.y) + ","; output += "\"vr\"->{"; for (const graph::vertex &v : vertices) { output += "{" + std::to_string(v.r.x) + "," + std::to_string(v.r.y) + "},"; -- cgit v1.2.3-70-g09d2