mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 06:27:17 +00:00
fixed a crash due to illegal mvec multiplication in triangle
This commit is contained in:
parent
e9fe9013dc
commit
d1793a774e
@ -37,13 +37,14 @@ int how1 = how - 1;
|
|||||||
// precision: number of substeps to simulate (best if divisible by how and how1)
|
// precision: number of substeps to simulate (best if divisible by how and how1)
|
||||||
int isteps = 4 * 1024;
|
int isteps = 4 * 1024;
|
||||||
|
|
||||||
/* the generators correspond to: */
|
/* the generators correspond to: (unused) */
|
||||||
|
|
||||||
nilv::mvec a(1,0,0);
|
void build_gens() {
|
||||||
nilv::mvec b(0,1,0);
|
nilv::mvec a(1,0,0);
|
||||||
nilv::mvec c = (a * b).inverse();
|
nilv::mvec b(0,1,0);
|
||||||
|
nilv::mvec c = (a * b).inverse();
|
||||||
vector<nilv::mvec> gens = { a, b, c, a.inverse(), b.inverse(), c.inverse() };
|
vector<nilv::mvec> gens = { a, b, c, a.inverse(), b.inverse(), c.inverse() };
|
||||||
|
}
|
||||||
|
|
||||||
struct triangledata {
|
struct triangledata {
|
||||||
hyperpoint at;
|
hyperpoint at;
|
||||||
|
Loading…
Reference in New Issue
Block a user