mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	implemented drawBoundary for spiral
This commit is contained in:
		
							
								
								
									
										21
									
								
								hypgraph.cpp
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								hypgraph.cpp
									
									
									
									
									
								
							| @@ -1297,6 +1297,27 @@ void draw_boundary(int w) { | ||||
|         } | ||||
|       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; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue