mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
rewritten hyperpoint initializer in C++11
This commit is contained in:
parent
aafe464bc6
commit
6394fa4649
2
hyper.h
2
hyper.h
@ -29,7 +29,7 @@ typedef long double ld;
|
|||||||
|
|
||||||
struct hyperpoint : array<ld, 3> {
|
struct hyperpoint : array<ld, 3> {
|
||||||
hyperpoint() {}
|
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 {
|
struct transmatrix {
|
||||||
|
Loading…
Reference in New Issue
Block a user