function middlePoint = getMiddlePoint(pt1, pt2)
%GETMIDDLEPOINT Middle of segment defined by 2 points.
%   MIDDLEPOINT = GETMIDDLEPOINT(PT1, PT2)

%   Author: Damien Teney

middlePoint = (pt1 + pt2) / 2;
