rotateToXAxis() {
    let left = this.getLeftVector();
    this.setRightVector(left.x + this.getLength(), left.y);
    return this;
  }
Rotates this line to be aligned with the x-axis. The center of rotation is the left vector.

@returns {Line} This line.