template<class T> static double OEGeom2DDotProd(const T *p, const T *q)
Determine the dot-product in two dimensions between p and q.