public static float test4distanceShort(PointStructF pointOne, PointStructF pointTwo) { float x = pointOne.X - pointTwo.X; float y = pointOne.Y - pointTwo.Y; return((x * x) + (y * y)); }
public static float test2distanceStruct(PointStructF pointOne, PointStructF pointTwo) { float x = pointOne.X - pointTwo.X; float y = pointOne.Y - pointTwo.Y; return((float)Math.Sqrt((x * x) + (y * y))); }