line to point collision without making three square roots


Is it possible to test a point to line collision without making three square roots? The only way I have seen it done is to do the Pythagorean equation for each of the three points.