template<class T> void OEGeom2DMidpoint(T *x, const T *p, const T *q)
Determines the midpoint x between p and q in two dimensions.