mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-20 00:17:39 +00:00
rewritten hyperpoint initializer in C++11
This commit is contained in:
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 {
|
||||||
|
Reference in New Issue
Block a user