mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-29 06:03:11 +00:00
implemented drawBoundary for spiral
This commit is contained in:
parent
147dcb58c4
commit
68c8012d91
21
hypgraph.cpp
21
hypgraph.cpp
@ -1296,6 +1296,27 @@ void draw_boundary(int w) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case mdSpiral: {
|
||||||
|
using namespace hyperpoint_vec;
|
||||||
|
if(euclid) return;
|
||||||
|
if(p == PPR::CIRCLE) p = PPR::OUTCIRCLE;
|
||||||
|
auto& sm = conformal::spiral_multiplier;
|
||||||
|
if(real(sm)) {
|
||||||
|
queuereset(mdUnchanged, p);
|
||||||
|
for(ld a=-10; a<=10; a+=0.1) {
|
||||||
|
cld z = exp(cld(a, a * imag(sm) / real(sm) + M_PI));
|
||||||
|
hyperpoint ret = hpxyz(real(z), imag(z), 0);
|
||||||
|
if(vid.skiprope)
|
||||||
|
ret = mobius(ret, vid.skiprope, 1);
|
||||||
|
ret *= vid.radius;
|
||||||
|
curvepoint(ret);
|
||||||
|
}
|
||||||
|
queuecurve(ringcolor, 0, p);
|
||||||
|
queuereset(pmodel, p);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user