You are here

public function Geometry::within in geoPHP 7

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

File

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

Class

Geometry
Geometry abstract class

Code

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