Lines Matching refs:x
9 * A Point has an x-coordinate value, a y-coordinate value.
15 protected $x = null;
26 * @param int|float|null $x The x coordinate (or longitude)
32 public function __construct($x = null, $y = null, $z = null, $m = null)
35 if ($x !== null && $y !== null) {
36 // Basic validation on x and y
37 if (!is_numeric($x) || !is_numeric($y)) {
38 throw new InvalidGeometryException("Cannot construct Point. x and y should be numeric");
42 $this->x = floatval($x);
52 $this->z = $this->x !== null ? floatval($z) : null;
61 $this->m = $this->x !== null ? floatval($m) : null;
91 public function x()
93 return $this->x;
127 * Inverts x and y coordinates
134 $x = $this->x;
135 $this->x = $this->y;
136 $this->y = $x;
152 'maxx' => $this->x(),
153 'minx' => $this->x(),
166 return [$this->x, $this->y];
169 return [$this->x, $this->y, $this->z, $this->m];
172 return [$this->x, $this->y, $this->z];
175 return [$this->x, $this->y, null, $this->m];
192 return $this->x === null;
233 ? (abs($this->x() - $geometry->x()) <= 1.0E-9 && abs($this->y() - $geometry->y()) <= 1.0E-9)
268 pow(($this->x() - $geometry->x()), 2)
295 $x1 = $seg[0]->x();
297 $x2 = $seg[1]->x();
306 $x3 = $this->x();
315 $x = $x1 + ($u * $px);
317 $dx = $x - $x3;