code: public void setX(float x) {
      	if (x != this.x) {
      		float dx = x - this.x;
  	        this.x = x;
  	        
  	        if ((points == null) || (center == null)) {
  	        	checkPoints();
  	        }
  	        // update the points in the special case
      		for (int i=0;i<points.length/2;i++) {
      			points[i*2] += dx;
      		}
      		center[0] += dx;
      		x += dx;
      		maxX += dx;
      		minX += dx;
  	        trianglesDirty = true;
      	}
      }
docs: Set the x position of the left side this shape.
  
  @param x The new x position of the left side this shape.