The Agile Challenge

Using any of the available agile methodologies implement the following:

As a graphic designer
I have a method that draws a straight line in the Euclidean Plane
Given the endpoints in line(x1,y1,x2,y2)
I want to know the length of the line

Estimate the complexity of the problem in story points and provide a java class or method with the solution.