/** Return true if this rectangle and the given other rectangle have any * points in common. */ public function intersects(S2LatLngRect $other) { $latInt = $this->lat->intersects($other->lat); $lngInt = $this->lng->intersects($other->lng); // echo var_export($latInt, true) . ' ' . var_export($lngInt, true) . "\n"; return $latInt && $lngInt; }