public static function areSameSpace(PointInterface $point1, PointInterface $point2)
    {
        return (bool) (
            ($point1->is1D() && $point2->is1d()) ||
            ($point1->is2D() && $point2->is2d()) ||
            ($point1->is3D() && $point2->is3d())
        );
    }
public static function areSameSpace(PointInterface $point1, PointInterface $point2)
    {
        return (bool) (
            ($point1->is1D() && $point2->is1d()) ||
            ($point1->is2D() && $point2->is2d()) ||
            ($point1->is3D() && $point2->is3d())
        );
    }
public static function areSameSpace ( PointInterface $ point1 , PointInterface $ point2 ) { return ( bool ) ( ( $ point1 -> is1D ( ) && $ point2 -> is1d ( ) ) || ( $ point1 -> is2D ( ) && $ point2 -> is2d ( ) ) || ( $ point1 -> is3D ( ) && $ point2 -> is3d ( ) ) ) ; }
Test if two points are in the same space type

@param   \Maths\PointInterface $point1
@param   \Maths\PointInterface $point2
@return  bool
Test if two points are in the same space type