Distance

I need a way to calculate distance between two points. So far I have a class method 'public static double pointDistance(Point2D.Double p, Point2D.Double q)'I'm having trouble getting it to work. Could anyone help me fill in the blanks?
[252 byte] By [aprykhusa] at [2007-10-2 6:10:18]
# 1

> I need a way to calculate distance between two

> points. So far I have a class method 'public static

> double pointDistance(Point2D.Double p, Point2D.Double

> q)'

>

> I'm having trouble getting it to work. Could anyone

> help me fill in the blanks?

So what have you got so far?

sabre150a at 2007-7-16 13:10:58 > top of Java-index,Java Essentials,New To Java...
# 2
> Could anyone> help me fill in the blanks?What are the blanks. Is it the math formula for the distance between two points or is it how to express it in code?
.u....j.a at 2007-7-16 13:10:58 > top of Java-index,Java Essentials,New To Java...
# 3
Sabre, please, you're doing so much homework for other people already.You too have the right for at least one day off per week. kind regards,Jos ;-)
JosAHa at 2007-7-16 13:10:58 > top of Java-index,Java Essentials,New To Java...
# 4

> Sabre, please, you're doing so much homework for

> other people already.

> You too have the right for at least one day off per

> week.

>

> kind regards,

>

> Jos ;-)

And you've been exposing your private parts for yet another week again. Why don't you take a break and zip up for a change now that everybody recognizes your willy?

Or why don't you spend some time catching up with the basics? Like for example the nature of virtual calls in Java or the properties of DAGs, both areas where you've shown an astonishing lack of understanding in the recent past.

Don't advice others to relax just because you're lax yourself!

Yours sincerely,

Ulrika

.u....j.a at 2007-7-16 13:10:58 > top of Java-index,Java Essentials,New To Java...
# 5
http://www.purplemath.com/modules/distform.htm
Zangrelaa at 2007-7-16 13:10:58 > top of Java-index,Java Essentials,New To Java...