You are here

public function Point::x in geoPHP 7

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

Get X (longitude) coordinate

Return value

float The X coordinate

Overrides Geometry::x

1 call to Point::x()
Point::equals in geoPHP/lib/geometry/Point.class.php

File

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

Class

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

Code

public function x() {
  return $this->coords[0];
}