code: public void setLine (float x1, float y1, float x2, float y2) {
          this.x1 = x1;
          this.y1 = y1;
          this.x2 = x2;
          this.y2 = y2;
      }
docs: Sets the start and end point of this line to the specified values.