code: public Vector getMidpoint(Vector other) {
          double x = (this.x + other.x) / 2;
          double y = (this.y + other.y) / 2;
          double z = (this.z + other.z) / 2;
          return new Vector(x, y, z);
      }
docs: Gets a new midpoint vector between this vector and another.
  
  @param other The other vector
  @return a new midpoint vector