@param int $x
@param int $y

@return RemoteTouchScreen The instance.
509964
public function up($x, $y)
    {
        $this->executor->execute(DriverCommand::TOUCH_UP, [
            'x' => $x,
            'y' => $y,
        ]);

        return $this;
    }
1272943
public static function CHtoWGSlat($y, $x)
    {

        // Converts military to civil and  to unit = 1000km
        // Auxiliary values (% Bern)
        $y_aux = ($y - 600000) / 1000000;
        $x_aux = ($x - 200000) / 1000000;

        // Process lat
        $lat = 16.9023892
            + 3.238272 * $x_aux
            - 0.270978 * pow($y_aux, 2)
            - 0.002528 * pow($x_aux, 2)
            - 0.0447 * pow($y_aux, 2) * $x_aux
            - 0.0140 * pow($x_aux, 3);

        // Unit 10000" to 1 " and converts seconds to degrees (dec)
        $lat = $lat * 100 / 36;

        return $lat;

    }
371612
public static function atan2($y, $x)
    {
        $y = $y instanceof Angle ? $y->rad : $y;
        $x = $x instanceof Angle ? $x->rad : $x;

        return static::rad(atan2($y, $x));
    }
1106626
public function move(float $x, float $y) : self
    {
        $path = clone $this;
        $path->operations[] = new Move($x, $y);
        return $path;
    }
1344318
public function Compare( $x, $y )
	{
		$nav1 = $x instanceof XPathNavigator
			? $x
			: null;
		$nav2 = $y instanceof XPathNavigator
			? $y
			: null;
		/**
		 * @var XPathNavigator $nav1
		 * @var XPathNavigator $nav2
		 */
		if ( ! is_null( $nav1 ) && ! is_null( $nav2 ) )
		{
			switch ( $nav1->ComparePosition( $nav2, $this->useLineNo ) )
			{
				case XmlNodeOrder::Before:
					return -1;

				case XmlNodeOrder::After:
					return 1;

				case XmlNodeOrder::Same:
					return 0;

				default:

					// It appears to be correct to return -1 every time because $nav1
					// will always appear before $nav2 because that's the order in which
					// they are presented in the XPath query.
					return -1;

					/**
					 * Below is an implementation of the C# version which appears to be wrong
					 * because the value of spl_object_hash (or getHashCode in C# is random
					 * so the result here is likely to be random.
					 * @var XPathNavigator $root1
					 * @var XPathNavigator $root2
					 */
					$root1 = $nav1->CloneInstance();
					$root1->MoveToRoot();
					$root2 = $nav2->CloneInstance();
					$root2->MoveToRoot();

					$hashCode1 = spl_object_hash( $root1 );
					$hashCode2 = spl_object_hash( $root2 );

					if ( $hashCode1 < $hashCode2 )
					{
						return -1;
					}
					else if ( $hashCode1 > $hashCode2 )
					{
						return 1;
					}
					else
					{
						throw new InvalidOperationException();
					}
			}
		}
		else
			throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::XPTY0004,
				array(
					"xs:anyAtomicType",
					"node()* in function op:union,op:intersect and op:except"
				)
			);
	}
1229900
public function addLabel($x, $y, $text)
    {
        $this->labels[] = array($x, $y, $text);

        return $this;
    }
1342629
public void clickOnScreen(float x, float y, View view) {
		boolean successfull = false;
		int retry = 0;
		SecurityException ex = null;

		while(!successfull && retry < 20) {
			long downTime = SystemClock.uptimeMillis();
			long eventTime = SystemClock.uptimeMillis();
			MotionEvent event = MotionEvent.obtain(downTime, eventTime,
					MotionEvent.ACTION_DOWN, x, y, 0);
			MotionEvent event2 = MotionEvent.obtain(downTime, eventTime,
					MotionEvent.ACTION_UP, x, y, 0);
			try{
				inst.sendPointerSync(event);
				inst.sendPointerSync(event2);
				successfull = true;
			}catch(SecurityException e){
				ex = e;
				dialogUtils.hideSoftKeyboard(null, false, true);
				sleeper.sleep(MINI_WAIT);
				retry++;
				View identicalView = viewFetcher.getIdenticalView(view);
				if(identicalView != null){
					float[] xyToClick = getClickCoordinates(identicalView);
					x = xyToClick[0]; 
					y = xyToClick[1];
				}
			}
		}
		if(!successfull) {
			Assert.fail("Click at ("+x+", "+y+") can not be completed! ("+(ex != null ? ex.getClass().getName()+": "+ex.getMessage() : "null")+")");
		}
	}
766101
public function skew($x, $y = null)
    {

        return $this->multiply(new self(
            1,
            tan(deg2rad($y)),
            tan(deg2rad($x !== null ? $x : $y)),
            1,
            0,
            0
        ));
    }
1051409
public function moveTo($x, $y) 
    {
        $p = $this->transform->multiplyPoint($x, $y);
        $this->paths[] = array($p->x, $p->y);
    }
263046
public function lineTo($x,$y)
	{
		
		$imageResource = $this->_imageResource;
		
		$_x = (int)$x;
		$_y = (int)$y;
		if($this->_beganFill){
			$this->_polygonPath[] = $_x;
			$this->_polygonPath[] = $_y;
		}else{
			imageline(
				$imageResource,
				$this->_oldX,
				$this->_oldY,
				$_x,
				$_y,
				$this->_lineDmColor->imagecolorallocatealpha($imageResource)
			);
		}
		$this->_oldX = $_x;
		$this->_oldY = $_y;
		return $this;
	}
943657
public function in($x, $y)
    {
        if (is_array($y)) {
            foreach ($y as &$literal) {
                if (! ($literal instanceof Expr\Literal)) {
                    $literal = $this->quoteLiteral($literal);
                }
            }
        }

        return new Expr\Func($x . ' IN', (array) $y);
    }
512705
public function setPosition($x, $y)
    {
        $this->posX = $x;
        $this->posy = $y;

        return $this;
    }
1301197
public function rgbXY($x, $y) {
        $color = $this->colorXY($x, $y);
        return array(($color >> 16) & 0xFF, ($color >> 8) & 0xFF, $color & 0xFF);
    }
1187488
public function setPixelRgb($x, $y, $rgb) {
		imagesetpixel($this->image, $x, $y, $rgb);
		return $this;
	}
196968
public function down($x, $y)
    {
        $this->webDriver->getDriver()->curl(
            $this->webDriver->getDriver()->factoryCommand(
                'touch/down',
                WebDriver_Command::METHOD_POST,
                [
                    'x' => (int) $x,
                    'y' => (int) $y,
                ]
            )
        );
        return $this;
    }
75264
public function multiply($x, $y) {
		$this->width *= $x;
		$this->height *= $y;
		return $this;
	}
654287
public function getPixel($x, $y)
    {
        $driver = $this->getDriver();
        return $driver->getPixel($this->resource, $x, $y);
    }