question: private double findLength ( Point originPoint , Point targetPoint ) { int x1 = originPoint . x ; int y1 = originPoint . y ; int x2 = targetPoint . x ; int y2 = targetPoint . y ; double sideA = x2 - x1 ; double sideB = ( y1 > y2 ? ( y1 - y2 ) : ( y2 - y1 ) ) ; if ( sideB == 0 ) { return sideA ; } return Math . sqrt ( Math . pow ( sideA , 2 ) + Math . pow ( sideB , 2 ) ) ; }
target:  uses trig to find legth of the hypotenuse