mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 03:54:47 +00:00
fake:: ray_iadj
This commit is contained in:
parent
5de7eb2bb2
commit
6aae43f1f8
8
fake.cpp
8
fake.cpp
@ -324,6 +324,14 @@ EX namespace fake {
|
||||
return *FPIU( (cgip = pcgip, &(currentmap->get_cellshape(c))) );
|
||||
}
|
||||
|
||||
transmatrix ray_iadj(cell *c, int i) override {
|
||||
if(PURE) return iadj(c, i);
|
||||
auto& v = get_cellshape(c).faces_local[i];
|
||||
hyperpoint h =
|
||||
project_on_triangle(v[0], v[1], v[2]);
|
||||
transmatrix T = rspintox(h);
|
||||
return T * xpush(-2*hdist0(h)) * spintox(h);
|
||||
}
|
||||
};
|
||||
|
||||
EX hrmap* new_map() { return new hrmap_fake; }
|
||||
|
Loading…
Reference in New Issue
Block a user