You are here

public function Point::x in geoPHP 8

Same name and namespace in other branches
  1. 7 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 53

Class

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

Code

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