Home
last modified time | relevance | path

Searched refs:tC0 (Results 1 – 25 of 58) sorted by relevance

123

/dports/games/hyperrogue/hyperrogue-12.0f/
H A Dblizzard.cpp126 hyperpoint t = inverse_shift(sball.global, tC0(sball2.global)); in drawBlizzards()
171 if(sb1.next) swapcost -= hdist(tC0(sb1.global), tC0(sb1.next->global)); in drawBlizzards()
172 if(sb2.next) swapcost -= hdist(tC0(sb2.global), tC0(sb2.next->global)); in drawBlizzards()
173 if(sb1.next) swapcost += hdist(tC0(sb2.global), tC0(sb1.next->global)); in drawBlizzards()
174 if(sb2.next) swapcost += hdist(tC0(sb1.global), tC0(sb2.next->global)); in drawBlizzards()
188 if(sb1.prev) swapcost -= hdist(tC0(sb1.global), tC0(sb1.prev->global)); in drawBlizzards()
189 if(sb2.prev) swapcost -= hdist(tC0(sb2.global), tC0(sb2.prev->global)); in drawBlizzards()
190 if(sb1.prev) swapcost += hdist(tC0(sb2.global), tC0(sb1.prev->global)); in drawBlizzards()
191 if(sb2.prev) swapcost += hdist(tC0(sb1.global), tC0(sb2.prev->global)); in drawBlizzards()
231 queueline(tC0(t0), tC0(t1), 0xFF0000FF, 4 + vid.linequality, PPR::ITEM); in drawArrowTraps()
[all …]
H A Dreg3.cpp61 …transmatrix t = build_matrix(tC0(cgi.adjmoves[a]), tC0(cgi.adjmoves[b]), tC0(cgi.adjmoves[c]), C0); in compute_common()
326 adjcheck = hdist(tC0(cgi.adjmoves[0]), tC0(cgi.adjmoves[1])) * 1.0001; in generate()
435 auto step = hdist0(tC0(cgi.adjmoves[0])); in generate_special_subcubes()
1070 …for(int i=0; i<S7; i++) if(hdist(tC0(inverse(f->fullv[s]) * cgi.adjmoves[0]), tC0(cgi.adjmoves[i])… in hrmap_field3()
1261 hyperpoint p = tC0(T); in hrmap_singlecell()
1281 hyperpoint p = tC0(T); in hrmap_seifert_cover()
1436 auto hT = tC0(T); in create_step()
1449 hyperpoint old = tC0(p1.second);; in create_step()
1605 hyperpoint old = tC0(T1); in hrmap_sphere3()
1609 auto hT = tC0(T); in hrmap_sphere3()
[all …]
H A Dmultigame.cpp143 …hyperpoint checked = tC0(currentmap->relative_matrix(cwt.at->cmove(i)->master, cwt.at->master, C0)… in remap_direction()
154 return gpushxto0(tC0(cwtV.T)) * cwtV.T; in get_orientation()
157 return gpushxto0(tC0(T)) * T * sword::dir[0].T; in get_orientation()
210 …which_dir = inverse(sword::dir[0].T) * tC0(currentmap->relative_matrix((cwt+d).cpeek()->master, cw… in movepc()
H A Dfake.cpp159 S1 = rspintox(tC0(T)); in adj()
160 transmatrix T1 = spintox(tC0(T)) * T; in adj()
161 dist = hdist0(tC0(T1)); in adj()
214 ld d = hdist0(tC0(V)); in draw_recursive()
293 return random_order[a.first] + hdist0(tC0(a.second)); in draw_at()
656 hyperpoint h = inverse_exp(shiftless(tC0(View))); in change_around()
657 transmatrix T = gpushxto0(tC0(View)) * View; in change_around()
H A Dradar.cpp62 shiftpoint h = tC0(V); in addradar()
175 h1 = tC0(atscreenpos(h1[0], h1[1], 1)); in draw_radar()
176 h2 = tC0(atscreenpos(h2[0], h2[1], 1)); in draw_radar()
H A Dhypgraph.cpp1427 return behindsphere(tC0(V)); in behindsphere()
1431 return behindsphere(tC0(V.T)); in behindsphere()
1435 return spherity(tC0(V)); in spherity()
1509 shiftpoint h = tC0(T); in in_smart_range()
1960 hyperpoint H = tC0(T); in centerpc()
2666 hyperpoint H = tC0(T.T); in optimize_shift()
2716 unsigned b = bucketer(tC0(T)); in enqueue_by_matrix()
2798 if(hypot(tC0(T.T)[2], tC0(T.T)[3]) > cosh(slr::range_xy)) return false; in do_draw()
2808 ld dist = hdist0(tC0(T.T)); in do_draw()
2821 hyperpoint h = tC0(T.T); in do_draw()
[all …]
H A Dgraph.cpp735 shiftpoint h = tC0(V); in face_the_player()
740 return rgpushxto0(tC0(V)); in face_the_player()
900 shiftpoint P1 = tC0(P); in drawItemType()
2424 R = hdist(tC0(a.attackat), tC0(a.wherenow)); in applyAnimation()
2426 R = hdist0(tC0(a.wherenow)); in applyAnimation()
2618 queueline(tC0(Vparam), Vparam * tC0(currentmap->adj(c, c->mondir)), (col << 8) + 0xFF, 0); in drawMonster()
2658 hyperpoint V0 = history::on ? unshift(tC0(Vs)) : inverse_shift(cwtV, tC0(Vs)); in drawMonster()
2914 U = rgpushxto0(tC0(U)); in drawMonster()
3932 hyperpoint H = unshift(tC0(V)); in cell_clipped()
4680 shiftpoint h = tC0(V); in draw_flash()
[all …]
H A Dshmup.cpp148 return findbaseAround(tC0(H), around, maxsteps); in findbaseAround()
182 hyperpoint h = tC0(T); in fix_to_2()
469 shiftpoint goal = tC0(gmatrix[c2]); in oceanCurrents()
493 shiftpoint goal = tC0(gmatrix[c2]); in airCurrents()
515 shiftpoint goal = tC0(gmatrix[c2]); in airCurrents()
571 shiftpoint goal = tC0(gmatrix[c2]); in roseCurrents()
1153 cell *c4 = findbaseAround(tC0(T1), c3, 1); in movePlayer()
1394 transmatrix S = spintox(tC0(H)); in reflectmatrix()
1395 ld d = hdist0(tC0(H)); in reflectmatrix()
1397 if(onlypos && tC0(T)[0] < 0) return false; in reflectmatrix()
[all …]
H A Dcelldrawer.cpp82 hr::addaura(tC0(V), darkened(aura_color), fd); in addaura()
1609 U = rgpushxto0(tC0(U)); in draw_features()
1677 …b = (patterns::innerwalls && (tC0(V)[2] < tC0(V * currentmap->adj(c, a))[2])) || fake::split() || … in draw_features_and_walls_3d()
1709 if(zlevel(tC0(V.T)) >= -cgi.plevel/2) continue; in draw_features_and_walls_3d()
1755 if(pmodel == mdGeodesic && hdist0(tC0(V)) < 1e-3) { in draw_features_and_walls_3d()
1757 else if(prod && hdist0(tC0(V)) < 1e-3) { in draw_features_and_walls_3d()
1822 auto pd = product_decompose(unshift(tC0(V))); in check_rotations()
1827 ds.total += unshift(tC0(V)); in check_rotations()
1872 orig = (gm[LDIM][LDIM] == 0) || hdist0(tC0(gm)) >= hdist0(tC0(V)); in bookkeeping()
1920 double dfc = hdist(tC0(V), tC0(multi::crosscenter[i])); in bookkeeping()
[all …]
H A Dhud.cpp362 shiftpoint H = tC0(U); in drawMobileArrow()
402 …queueline(shiftless(tC0(atscreenpos(xc - crosshair_size, yc, 1))), shiftless(tC0(atscreenpos(xc + … in draw_crosshair()
403 …queueline(shiftless(tC0(atscreenpos(xc, yc - crosshair_size, 1))), shiftless(tC0(atscreenpos(xc, y… in draw_crosshair()
H A Darbitrile.cpp127 cld dist = (hdist0(tC0(end)) / params["distunit"]); in generate_error()
175 mapeditor::dt_add_line(shiftless(tC0(err.v[i])), shiftless(tC0(err.v[i+1])), 0); in start_poly_debugger()
179 mapeditor::dt_add_text(shiftless(tC0(err.v[i])), 0.5, its(i)); in start_poly_debugger()
193 vertices.push_back(tC0(at)); in build_from_angles_edges()
194 ctr += tC0(at); in build_from_angles_edges()
933 … for(auto& p2: altmap[alt]) if(id_of(p2.first) == co.sid && hdist(tC0(p2.second), tC0(T)) < 1e-2) { in create_step()
H A Dsky.cpp42 T.T = gpushxto0(tC0(T.T)) * T.T; in prepare_sky()
160 hyperpoint a = tC0(A); in compute_skyvertices()
197 vertices.push_back(tC0(T1)); in compute_skyvertices()
H A Dcell.cpp54 virtual double spacedist(cell *c, int i) { return hdist0(tC0(adj(c, i))); } in spacedist()
169 transmatrix T = rspintox(tC0(adj(c, d))); in spin_to()
177 transmatrix T = spintox(tC0(adj(c, d))); in spin_from()
1249 hyperpoint h = tC0(calc_relative_matrix(c2, c1, C0)); in build_shortest_path()
1258 …= ", x, "p length = ", isize(p), " dist = ", hdist0(tC0(T1)), " dist from end = ", hdist(tC0(T1), in build_shortest_path()
H A Dcontrol.cpp89 hyperpoint H = sphereflip * tC0(U); in vectodir()
150 ld mousedist = hdist(mouseh, tC0(ggmatrix(cwt.at))); in calcMousedest()
372 transmatrix T2 = eupush( tC0(view_inverse(View)) ); in full_rotate_camera()
375 h = nlp * inverse_exp(shiftless(tC0(rV))); in full_rotate_camera()
377 else h = inverse_exp(shiftless(tC0(View))); in full_rotate_camera()
/dports/graphics/libpano13/libpano13-2.9.20/
H A DTriangulate.c70 PTTriangle tC0, tC1; in DelaunayIteration() local
85 SetTriangleCoordinates( &t0, &tC0, g ); in DelaunayIteration()
88 CopyPTPoint( s0.v[0], tC0.v[1]); in DelaunayIteration()
89 CopyPTPoint( s0.v[1], tC0.v[2]); in DelaunayIteration()
90 CopyPTPoint( s1.v[0], tC0.v[0]); in DelaunayIteration()
93 if( PTDistance( &tC0.v[1], &tC0.v[2]) > PTDistance( &tC0.v[0], &tC1.v[2] ) && in DelaunayIteration()
/dports/games/hyperrogue/hyperrogue-12.0f/rogueviz/
H A Dsmoothcam.cpp222 nonisotropic ? gpushxto0(tC0(view_inverse(View))) : in edit_step()
234 nonisotropic ? gpushxto0(tC0(view_inverse(View))) : in edit_step()
246 nonisotropic ? gpushxto0(tC0(view_inverse(View))) : in edit_step()
291 hyperpoint h1 = tC0(iso_inverse(View)); in show()
292 hyperpoint h2 = tC0(iso_inverse(f.sView)); in show()
447 h = tC0(f.V); in handle_animation()
449 h = tC0(parallel_transport(f.V, f.ori, ztangent(f.front_distance))); in handle_animation()
452 h = tC0(parallel_transport(f.V, f.ori, ctangent(1, -f.up_distance))); in handle_animation()
H A Dspiral.cpp74 hyperpoint l1 = tC0(spiral::at(1+ei->i)); in spiral_altedge()
77 hyperpoint l2 = tC0(spiral::at(1+ei->i+(ei->j-ei->i) * z / (prec+.0))); in spiral_altedge()
H A Dbanachtarski.cpp200 shiftpoint h1 = tC0(ggmatrix(cp.first)); in quality()
201 shiftpoint h2 = tC0(ggmatrix(cp.second)); in quality()
391 queueline(tC0(gmatrix[p.first]), tC0(gmatrix[p.second]), 0xFFFFFFFF, 2); in bantar_frame()
449 queueline(tC0(gmatrix[p.first]), tC0(gmatrix[p.second]), 0x00FF00FF, 4); in bantar_stats()
H A Dflocking.cpp138 I = gpushxto0(tC0(m->at)); in simulate()
170 hyperpoint ac = inverse_exp(shiftless(tC0(at2))); in simulate()
185 align += gpushxto0(tC0(at2)) * at2 * hpxyz(vel2, 0, 0); in simulate()
290 auto h1 = unshift(tC0(vdata[i].m->pat)); in turn()
530 if(hypot_d(WDIM, inverse_exp(shiftless(tC0(T)))) <= check_range) { in init()
H A Drandom-walk.cpp72 hyperpoint h = tC0(w.T); in advance_walkers()
81 hyperpoint h1 = tC0(w.T); in advance_walkers()
H A Dreverb.cpp207 …queuepoly(rgpushxto0(tC0(V)) * cspin(0, 2, M_PI/2) * cspin(1, 2, 90 * degree) * cspin(0, 2, 45 * d… in draw_bird()
214 ci.curdist[0] = hdist0(xpush(-iad) * tC0(V)); in draw_bird()
215 ci.curdist[1] = hdist0(xpush(+iad) * tC0(V)); in draw_bird()
H A Dkohonen.cpp330 for(int i=0; i<q; i++) h += coeff[i] * tC0(currentmap->adj(w.where, dirs[i])); in triangulate()
416 if(gaussian == 2) return hdist(tC0(ggmatrix(c1)), tC0(ggmatrix(c2))); in mydistance()
799 ld d1 = hdist0(tC0(ggmatrix(c1))); in gen_neuron_cells()
800 ld d2 = hdist0(tC0(ggmatrix(c2))); in gen_neuron_cells()
808 ld dist = hdist0(tC0(ggmatrix(allcells[at-1]))); in gen_neuron_cells()
809 while(at < isize(allcells) && hdist0(tC0(ggmatrix(allcells[at]))) < dist + 1e-6) at++; in gen_neuron_cells()
811 while(at1 > 0 && hdist0(tC0(ggmatrix(allcells[at1-1]))) > dist - 1e-6) at1--; in gen_neuron_cells()
1002 double d2 = hdist(tC0(T), tC0(gmatrix[c2])); in draw()
1003 double d3 = hdist(tC0(T), tC0(gmatrix[c3])); in draw()
H A Drogueviz.cpp204 if(m->base == base) return tC0(m->at); in where()
206 return calc_relative_matrix(m->base, base, C0) * tC0(m->at); in where()
210 return inverse_shift(ggmatrix(currentmap->gamestart()), ggmatrix(m->base) * tC0(m->at)); in where()
647 gm2 = gm1 * brm_get(vd1.m->base, tC0(vd1.m->at), vd2.m->base, tC0(vd2.m->at)); in drawVertex()
750 shiftpoint h = tC0(V * m->at); in drawVertex()
1109 shiftpoint H = ggmatrix(m->base) * tC0(m->at); in search_marker()
H A Dplane-immersion.cpp36 return cspin(0, 2, -M_PI/2) * tC0(parabolic13(x, y)); in fp()
/dports/games/hyperrogue/hyperrogue-12.0f/devmods/
H A Dtests.cpp74 …hyperpoint h = Hypc; h[co] = z; h[cx] = x; if(WDIM == 3) h[cy] = y; return tC0(bt::normalized_at(h… in readArgs()

123