Subject: Re: The Smallest Circle (#157)
From: ThoML <micathom gmail.com>
Date: Mon, 18 Feb 2008 01:54:55 +0900
References: 291141291384291395
And again I reply to my own post. The test code requires a distance()
method:
def distance(p1, p2)
Math.sqrt((p1.x - p2.x) ** 2 + (p1.y - p2.y) ** 2)
end
In case somebody cares.