mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
rogueviz:: updated to inverse_exp changes
This commit is contained in:
parent
37ceb0bcbc
commit
6619586efa
@ -103,7 +103,7 @@ namespace flocking {
|
|||||||
for(int i=0; i<isize(cl.lst); i++) {
|
for(int i=0; i<isize(cl.lst); i++) {
|
||||||
cell *c2 = cl.lst[i];
|
cell *c2 = cl.lst[i];
|
||||||
transmatrix T = calc_relative_matrix(c2, c1, C0);
|
transmatrix T = calc_relative_matrix(c2, c1, C0);
|
||||||
if(hypot_d(WDIM, inverse_exp(tC0(T), iTable, false)) <= check_range) {
|
if(hypot_d(WDIM, inverse_exp(tC0(T))) <= check_range) {
|
||||||
relmatrices[c1][c2] = T;
|
relmatrices[c1][c2] = T;
|
||||||
forCellEx(c3, c2) cl.add(c3);
|
forCellEx(c3, c2) cl.add(c3);
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ namespace flocking {
|
|||||||
// at2 is like m2->at but relative to m->at
|
// at2 is like m2->at but relative to m->at
|
||||||
|
|
||||||
// m2's position relative to m (tC0 means *(0,0,1))
|
// m2's position relative to m (tC0 means *(0,0,1))
|
||||||
hyperpoint ac = inverse_exp(tC0(at2), iTable, false);
|
hyperpoint ac = inverse_exp(tC0(at2));
|
||||||
if(use_rot) ac = Rot * ac;
|
if(use_rot) ac = Rot * ac;
|
||||||
|
|
||||||
// distance and azimuth to m2
|
// distance and azimuth to m2
|
||||||
|
@ -111,9 +111,9 @@ struct trianglemaker {
|
|||||||
|
|
||||||
// println(hlog, "uds = ", uds);
|
// println(hlog, "uds = ", uds);
|
||||||
|
|
||||||
for(int a=0; a<3; a++) println(hlog, sqhypot_d(3, inverse_exp(start + ds[a] * ca, iTable, false)));
|
for(int a=0; a<3; a++) println(hlog, sqhypot_d(3, inverse_exp(start + ds[a] * ca)));
|
||||||
|
|
||||||
for(int a=0; a<3; a++) println(hlog, sqhypot_d(3, inverse_exp(uds[a], iTable, false)));
|
for(int a=0; a<3; a++) println(hlog, sqhypot_d(3, inverse_exp(uds[a])));
|
||||||
|
|
||||||
// compute cube vertices
|
// compute cube vertices
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user