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
1 changed files with 1 additions and 1 deletions

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 {