mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-16 11:08:05 +00:00
2d3d:: no more matrix/unmappable warnings
This commit is contained in:
@@ -427,11 +427,14 @@ void set_column(transmatrix& T, int i, const hyperpoint& H) {
|
||||
}
|
||||
|
||||
transmatrix build_matrix(hyperpoint h1, hyperpoint h2, hyperpoint h3) {
|
||||
transmatrix T = Id;
|
||||
transmatrix T;
|
||||
for(int i=0; i<MDIM; i++)
|
||||
T[i][0] = h1[i],
|
||||
T[i][1] = h2[i],
|
||||
T[i][2] = h3[i];
|
||||
if(DIM == 3)
|
||||
for(int i=0; i<MDIM; i++)
|
||||
T[i][3] = (i == WDIM);
|
||||
return T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user