code: public double dot(Quaterniond q) {
          return dot(q.x, q.y, q.z, q.w);
      }
docs: Returns the dot product of this quaternion with another one.
  
  @param q The quaternion to calculate the dot product with
  @return The dot product of the two quaternions