public static float ClassFloat(PointClassFloat pointOne, PointClassFloat pointTwo) { float x = pointOne.X - pointTwo.X; float y = pointOne.Y - pointTwo.Y; return(MathF.Sqrt((x * x) + (y * y))); }
public void TestClassFloat() { PointClassFloat pointOne = new PointClassFloat(); pointOne.X = TestFloat; pointOne.Y = TestFloat; PointClassFloat pointTwo = new PointClassFloat(); pointOne.X = TestFloat2; pointOne.Y = TestFloat2; ClassFloat(pointOne, pointTwo); }