From 8569242082340e5ef7a0189195cf8ef302d87e13 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 26 Feb 2022 09:46:40 +0100 Subject: [PATCH] material works for s2xe and h2xe --- hyperpoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 3947a2ce..729dc622 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -466,8 +466,8 @@ EX transmatrix to_other_side(hyperpoint h1, hyperpoint h2) { /** @brief positive for a material vertex, 0 for ideal vertex, negative for ultra-ideal vertex */ EX ld material(const hyperpoint& h) { - if(sphere) return intval(h, Hypc); - else if(hyperbolic) return -intval(h, Hypc); + if(sphere || in_s2xe()) return intval(h, Hypc); + else if(hyperbolic || in_h2xe()) return -intval(h, Hypc); else if(sl2) return h[2]*h[2] + h[3]*h[3] - h[0]*h[0] - h[1]*h[1]; else return h[LDIM]; }