docs: public double angleTo(LineSegment other) {
          double angle1 = Math.atan2(this.start.y - this.end.y, this.start.x - this.end.x);
          double angle2 = Math.atan2(other.start.y - other.end.y, other.start.x - other.end.x);
          double angle = Math.toDegrees(angle1 - angle2);
          if (angle <= -180) {
              angle += 360;
          }
          if (angle >= 180) {
              angle -= 360;
          }
          return angle;
      }