public static float CalcClassDistanceFloat(ClassFloat point1, ClassFloat point2) { float x = point1.X - point2.X; float y = point1.Y - point2.Y; return(MathF.Sqrt((x * x) + (y * y))); }
public void GetDistanceFromClassFloat() { var pointEnd = new ClassFloat() { X = setX_float, Y = setY_float }; var pointStart = new ClassFloat() { X = 42.6498F, Y = 42.12385612F }; CalcClassDistanceFloat(pointStart, pointEnd); }