From aa1b3f3057ed1a873e9f6fa11b6021a88142a58c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 10 Aug 2019 00:28:28 +0200 Subject: [PATCH] moved hyperpoint inlines to hyperpoint.cpp --- hyper.h | 26 -------------------------- hyperpoint.cpp | 28 ++++++++++++++++++++++++++++ pattern2.cpp | 4 ++-- 3 files changed, 30 insertions(+), 28 deletions(-) diff --git a/hyper.h b/hyper.h index dca0a54d..550a2547 100644 --- a/hyper.h +++ b/hyper.h @@ -2824,30 +2824,4 @@ static const color_t NOCOLOR = 0; namespace hr { inline bool movepcto(const movedir& md) { return movepcto(md.d, md.subdir); } - - inline hyperpoint cpush0(int c, ld x) { - hyperpoint h = Hypc; - h[GDIM] = cos_auto(x); - h[c] = sin_auto(x); - return h; - } - - inline hyperpoint xspinpush0(ld alpha, ld x) { - hyperpoint h = Hypc; - h[GDIM] = cos_auto(x); - h[0] = sin_auto(x) * cos(alpha); - h[1] = sin_auto(x) * -sin(alpha); - return h; - } - - inline hyperpoint xpush0(ld x) { return cpush0(0, x); } - inline hyperpoint ypush0(ld x) { return cpush0(1, x); } - inline void reset_projection() { new_projection_needed = true; } - - // T * C0, optimized - inline hyperpoint tC0(const transmatrix &T) { - hyperpoint z; - for(int i=0; itype == S7; } -bool ishex1(cell *c) { +EX bool ishex1(cell *c) { // EUCLIDEAN if(euclid) return eupattern(c) == 1; #if CAP_GP