Added ctx.calcDistance(p1,p2) convenience method.
Merge remote-tracking branch 'origin/master'