Lines Matching refs:x2

581 				if (isset($gradient_info['info']['x2'])) {
582 $gradient_info['info']['x2'] = ($gradient_info['info']['x2'] - $x_offset) / $w;
598 if (isset($gradient_info['info']['x2'])) {
599 $x2 = $gradient_info['info']['x2'];
601 $x2 = 1;
612 if (strpos($x2, '%') !== false) {
613 $x2 = (stristr($x2, '%', true) + 0) / 100;
630 $angle = rad2deg(atan2(($gradient_info['info']['y2'] - $gradient_info['info']['y1']), ($gradient_info['info']['x2'] - $gradient_info['info']['x1'])));
643 $x2 *= $w / $h;
687 $px1 = $x1 + ($x2 - $x1) * $tmp;
690 $alpha = atan2($y2 - $y1, $x2 - $x1);
730 $px1 = $x1 + ($x2 - $x1) * $tmp;
733 $alpha = atan2($y2 - $y1, $x2 - $x1);
783 $grx1 = $x1 + ($x2 - $x1) * $gradient_info['color'][0]['offset'];
785 $grx2 = $x1 + ($x2 - $x1) * $gradient_info['color'][count($gradient_info['color']) - 1]['offset'];
1096 $x2 = $x;
1112 $x2 = $xmax; // right edge
1115 $x2 = $xmin; // left edge
1127 return ['x' => $x2, 'y' => $y2];
1754 $x2 = ($a[$i]);
1764 $pdfx2 = ($this->xbase + $x2);
1775 $pdfx2 = $x2;
1810 $x2 = ($a[$i + 2]);
1819 $pdfx2 = ($this->xbase + $x2);
1830 $pdfx2 = $x2;
1993 $x2 = isset($a[$i + 5]) ? $a[$i + 5] : 0;
2000 $x2 = $this->xbase + $x2;
2005 $this->xbase = $x2;
2009 list($pcmd, $bounds) = $this->Arcto($x1, $y1, $x2, $y2, $rx, $ry, $angle, $largeArcFlag, $sweepFlag);
2011 $minl = min($minl, $x2, min($bounds[0]));
2012 $maxr = max($maxr, $x2, max($bounds[0]));
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;
2091 // the ellipse is not big enough to reach from (x1, y1) to (x2,
2109 $cx = $cosPhi * $cxdash - $sinPhi * $cydash + ($x1 + $x2) / 2.0;
2166 $x2 = $c[4];
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";
2309 $x2 = $cx + $rx;
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);
3518 if (isset($attribs['x2'])) {
3519 $tmp_gradient['info']['x2'] = $attribs['x2'];
3801 $arguments[2] = (isset($attribs['x2']) ? $attribs['x2'] : '');
3805 unset($critere_style['x1'], $critere_style['y1'], $critere_style['x2'], $critere_style['y2']);
4262 $x2 = max($bounds[0]);
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)]
4292 $b1 = $x1 - $x2;