Lines Matching refs:y
9 * A Point has an x-coordinate value, a y-coordinate value.
17 protected $y = null;
27 * @param int|float|null $y The y coordinate (or latitude)
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");
43 $this->y = floatval($y);
101 public function y()
103 return $this->y;
127 * Inverts x and y coordinates
135 $this->x = $this->y;
136 $this->y = $x;
150 'maxy' => $this->y(),
151 'miny' => $this->y(),
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];
233 ? (abs($this->x() - $geometry->x()) <= 1.0E-9 && abs($this->y() - $geometry->y()) <= 1.0E-9)
269 + pow(($this->y() - $geometry->y()), 2)
296 $y1 = $seg[0]->y();
298 $y2 = $seg[1]->y();
307 $y3 = $this->y();
316 $y = $y1 + ($u * $py);
318 $dy = $y - $y3;