function getMidPoint(p, q) {
  return {
    x: Math.round(p.x + ((q.x - p.x) / 2.0)),
    y: Math.round(p.y + ((q.y - p.y) / 2.0))
  };
}
Returns a point in the middle of points p and q

@param {Point} p
@param {Point} q

@return {Point} The mid point between the two points.