double getCoord(int dim, {Vector3? direction}) { direction ??= ORIGIN; return getExtremumAlongDim( dim: dim, key: direction.getComponent(dim).toInt(), ); }