Egoboo is a working cool 3D dungeon crawling game in the spirit of NetHack for Windows, Linux and Mac.
id::semantic_cast<Vector2f>(getPosition(), id::zero<Point2f>())
id::semantic_cast<Vector2f>(getPosition(), Point2f(1,1))
auto t = id::euclidean_norm(v);
if (t.length == id:zero<float>()) { /* v was zero, t.vector contains v*/ }
else { /*t.vector contains the normalized vector*/ }
c
does not stand for C or C++ but rather compiler
grog()
which grogs the player