1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

rewritten hyperpoint initializer in C++11

This commit is contained in:
Zeno Rogue 2018-05-26 01:11:50 +02:00
parent aafe464bc6
commit 6394fa4649

View File

@ -29,7 +29,7 @@ typedef long double ld;
struct hyperpoint : array<ld, 3> {
hyperpoint() {}
hyperpoint(ld x, ld y, ld z) : array<ld,3> {x,y,z} {}
hyperpoint(ld x, ld y, ld z) { (*this)[0] = x; (*this)[1] = y; (*this)[2] = z; }
};
struct transmatrix {