From 194e314069fc5acbd6f2c892d02623a6dfbd573f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 1 May 2020 11:33:40 +0200 Subject: [PATCH] triangle:: generators shown --- rogueviz/triangle.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rogueviz/triangle.cpp b/rogueviz/triangle.cpp index ce207327..eec71383 100644 --- a/rogueviz/triangle.cpp +++ b/rogueviz/triangle.cpp @@ -37,6 +37,14 @@ int how1 = how - 1; // precision: number of substeps to simulate (best if divisible by how and how1) int isteps = 4 * 1024; +/* the generators correspond to: */ + +nilv::mvec a(1,0,0); +nilv::mvec b(0,1,0); +nilv::mvec c = (a * b).inverse(); + +vector gens = { a, b, c, a.inverse(), b.inverse(), c.inverse() }; + struct triangledata { hyperpoint at; bool computed;