public static function areSameSpace(PointInterface $point1, PointInterface $point2)
    {
        return (bool) (
            ($point1->is1D() && $point2->is1d()) ||
            ($point1->is2D() && $point2->is2d()) ||
            ($point1->is3D() && $point2->is3d())
        );
    }