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*/ }
grog()
which grogs the player