You are here

public function Geometry::contains in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/geometry/Geometry.class.php \Geometry::contains()

File

geoPHP/lib/geometry/Geometry.class.php, line 273

Class

Geometry
Geometry abstract class

Code

public function contains(Geometry $geometry) {
  if ($this
    ->geos()) {
    return $this
      ->geos()
      ->contains($geometry
      ->geos());
  }
}