public SquaredDistanceTo ( |
||
anotherPoint | Point to calculate distance to. | |
return | double |
public double SquaredDistanceTo( DoublePoint anotherPoint )
{
double dx = X - anotherPoint.X;
double dy = Y - anotherPoint.Y;
return dx * dx + dy * dy;
}