You are here

public function Point::equals in geoPHP 8

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

Overrides Geometry::equals

File

geoPHP/lib/geometry/Point.class.php, line 133

Class

Point
Point: The most basic geometry type. All other geometries are built out of Points.

Code

public function equals($geometry) {
  return $this
    ->x() == $geometry
    ->x() && $this
    ->y() == $geometry
    ->y();
}