changes the way we detect an intersection and removes the need for hypotenuse