mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
replaced first_period by ::T0 use
This commit is contained in:
parent
66164d873c
commit
9ce5687f57
@ -17,10 +17,9 @@ EX namespace euclid3 {
|
||||
#if HDR
|
||||
typedef long long coord;
|
||||
constexpr long long COORDMAX = (1<<16);
|
||||
#endif
|
||||
typedef array<coord, 3> axes;
|
||||
typedef array<array<int, 3>, 3> intmatrix;
|
||||
|
||||
#endif
|
||||
|
||||
static const axes main_axes = make_array<coord>(1, COORDMAX, COORDMAX * COORDMAX );
|
||||
|
||||
@ -80,7 +79,7 @@ EX namespace euclid3 {
|
||||
|
||||
EX coord canonicalize(coord x);
|
||||
EX int twisted;
|
||||
intmatrix T0;
|
||||
EX intmatrix T0;
|
||||
EX gp::loc twisted_vec, ortho_vec;
|
||||
|
||||
struct hrmap_euclid3 : hrmap_standard {
|
||||
@ -909,8 +908,6 @@ EX bool chiral(gp::loc g) {
|
||||
return true;
|
||||
}
|
||||
|
||||
EX euclid3::coord first_period() { return 0; }
|
||||
|
||||
EX void twist_once(gp::loc coo) {
|
||||
coo = coo - euclid3::twisted_vec * gp::univ_param();
|
||||
if(euclid3::twisted&8) {
|
||||
|
4
rug.cpp
4
rug.cpp
@ -253,7 +253,7 @@ EX rugpoint *addRugpoint(hyperpoint h, double dist) {
|
||||
m->valid = false;
|
||||
|
||||
if(euclid && quotient && !bounded) {
|
||||
hyperpoint h1 = eumove(first_period()) * C0;
|
||||
hyperpoint h1 = eumove(euclid3::ascoord(euclid3::T0[1])) * C0;
|
||||
h1 /= sqhypot_d(2, h1);
|
||||
if(nonorientable) h1 /= 2;
|
||||
m->valid = good_shape = true;
|
||||
@ -635,7 +635,7 @@ EX void buildRug() {
|
||||
for(int j=0; j<c->type; j++) addTriangle(v, p[j], p[(j+1) % c->type]);
|
||||
|
||||
if((euclid && quotient) && nonorientable) {
|
||||
transmatrix T = ggmatrix(c) * eumove(first_period());
|
||||
transmatrix T = ggmatrix(c) * eumove(euclid3::ascoord(euclid3::T0[1]));
|
||||
rugpoint *Tv = addRugpoint(T * C0, 0);
|
||||
for(int j=0; j<c->type; j++) p[j] = findOrAddRugpoint(T * get_corner_position(c, j), v->dist);
|
||||
for(int j=0; j<c->type; j++) addTriangle(Tv, p[j], p[(j+1) % c->type]);
|
||||
|
Loading…
Reference in New Issue
Block a user