question: private static float distance ( float eventX , float startX , float eventY , float startY ) { float dx = eventX - startX ; float dy = eventY - startY ; return ( float ) Math . sqrt ( dx * dx + dy * dy ) ; }
target:  returns the distance between two points