Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm not familiar with the Java interface but it should be something like

Point difference=Point1-Point2;
double distance =sqrt( difference.ddot(difference));

you are basically doing sqrt((point1.x-point2.x)^2+(point1.y-point2.y)^2)

guy

I'm not familiar with the Java interface but it should be something like

Point difference=Point1-Point2;
double distance =sqrt( difference.ddot(difference));

you are basically doing sqrt((point1.x-point2.x)^2+(point1.y-point2.y)^2)doing:

square root of (point1.x-point2.x)^2+(point1.y-point2.y)^2)

guy