Guided Midpoint, Gradient and Distance between Two Points