static private float calculateTouchDistance(TouchPosition began, TouchPosition ended) { var distance = Math.Pow(ended.x - began.x, 2) + Math.Pow(ended.y - began.y, 2); return((float)distance); }