template<class T> static void OEGeom3DMidpoint(T *x, const T *p, const T *q)
Three dimensional midpoint calculation. Return x = (p+q)/2.