public float DistanceToPoint( Point point )
{
float distance;
if ( !IsVertical )
{
float div = (float) Math.Sqrt( k * k + 1 );
distance = Math.Abs( ( k * point.X + b - point.Y ) / div );
}
else
{
distance = Math.Abs( b - point.X );
}
return distance;
}