Lines Matching refs:y2

584 				if (isset($gradient_info['info']['y2'])) {
585 $gradient_info['info']['y2'] = ($gradient_info['info']['y2'] - $y_offset) / $h;
603 if (isset($gradient_info['info']['y2'])) {
604 $y2 = $gradient_info['info']['y2'];
606 $y2 = 0;
618 if (strpos($y2, '%') !== false) {
619 $y2 = (stristr($y2, '%', true) + 0) / 100;
630 $angle = rad2deg(atan2(($gradient_info['info']['y2'] - $gradient_info['info']['y1']), ($gradient_info['info']['x2'] - $gradient_info['info']['x1'])));
639 $y2 *= $h / $w;
688 $py1 = $y1 + ($y2 - $y1) * $tmp;
690 $alpha = atan2($y2 - $y1, $x2 - $x1);
731 $py1 = $y1 + ($y2 - $y1) * $tmp;
733 $alpha = atan2($y2 - $y1, $x2 - $x1);
784 $gry1 = $y1 + ($y2 - $y1) * $gradient_info['color'][0]['offset'];
786 $gry2 = $y1 + ($y2 - $y1) * $gradient_info['color'][count($gradient_info['color']) - 1]['offset'];
1097 $y2 = $y;
1118 $y2 = $ymax; // bottom
1121 $y2 = $ymin; // top
1127 return ['x' => $x2, 'y' => $y2];
1755 $y2 = ($a[$i + 1]);
1765 $pdfy2 = ($this->ybase - $y2);
1776 $pdfy2 = -$y2;
1811 $y2 = ($a[$i + 3]);
1820 $pdfy2 = ($this->ybase - $y2);
1831 $pdfy2 = -$y2;
1994 $y2 = isset($a[$i + 6]) ? $a[$i + 6] : 0;
2001 $y2 = -$this->ybase + $y2;
2006 $this->ybase = -$y2;
2009 list($pcmd, $bounds) = $this->Arcto($x1, $y1, $x2, $y2, $rx, $ry, $angle, $largeArcFlag, $sweepFlag);
2013 $mint = min($mint, $y2, min($bounds[1]));
2014 $maxb = max($maxb, $y2, max($bounds[1]));
2049 function Arcto($x1, $y1, $x2, $y2, $rx, $ry, $angle, $largeArcFlag, $sweepFlag)
2052 $bounds = [0 => [$x1, $x2], 1 => [$y1, $y2]];
2056 // If the endpoints (x1, y1) and (x2, y2) are identical, then this
2058 if ($x1 == $x2 && $y1 == $y2) {
2065 // return array(Lineto(x2, y2), $bounds);
2083 $x1dash = $cosPhi * ($x1 - $x2) / 2.0 + $sinPhi * ($y1 - $y2) / 2.0;
2084 $y1dash = -$sinPhi * ($x1 - $x2) / 2.0 + $cosPhi * ($y1 - $y2) / 2.0;
2092 // y2)) then the ellipse is scaled up uniformly until there is
2110 $cy = $sinPhi * $cxdash + $cosPhi * $cydash + ($y1 + $y2) / 2.0;
2167 $y2 = $c[5];
2168 $path .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', $cpx1 * $this->kp, -$cpy1 * $this->kp, $cpx2 * $this->kp, -$cpy2 * $this->kp, $x2 * $this->kp, -$y2 * $this->kp) . "\n";
2310 $y2 = -$cy;
2319 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', ($x1 + ($rx * $kappa)) * $this->kp, $y1 * $this->kp, $x2 * $this->kp, ($y2 + ($ry * $kappa)) * $this->kp, $x2 * $this->kp, $y2 * $this->kp);
2320 $path_cmd .= sprintf('%.3F %.3F %.3F %.3F %.3F %.3F c ', $x2 * $this->kp, ($y2 - ($ry * $kappa)) * $this->kp, ($x3 + ($rx * $kappa)) * $this->kp, $y3 * $this->kp, $x3 * $this->kp, $y3 * $this->kp);
3522 if (isset($attribs['y2'])) {
3523 $tmp_gradient['info']['y2'] = $attribs['y2'];
3802 $arguments[3] = (isset($attribs['y2']) ? $attribs['y2'] : '');
3805 unset($critere_style['x1'], $critere_style['y1'], $critere_style['x2'], $critere_style['y2']);
4264 $y2 = max($bounds[1]);
4266 return [$x, $y, $x2, $y2];
4287 private function testIntersect($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4)
4289 // Tests whether line (x1, y1) and (x2, y2) [a gradient axis (perpendicular)]
4291 $a1 = $y2 - $y1;