x

x(): Integer;

The x method of the Point primitive type returns the x (horizontal) value of the receiver.

The following example shows the use of the x method.

drawLine(lastPoint.x, lastPoint.y, distance + lastPoint.x,
         newPoint.y, color);
lastPoint.setX(lastPoint.x + distance.Integer);
lastPoint.setY(newPoint.y);