////----------------------------------------Trouver la distance sur terrain a partir del'echellle---------------------------------- //------------------------------------------------------------------------------------------------------------- public double FindDistanceOnField(Line line) // real distance should be in meters { Point pointA = new Point(line.X1, line.Y1); Point pointB = new Point(line.X2, line.Y2); double tempDistance = Outils.DistanceBtwTwoPoints(pointA, pointB); return((tempDistance * ScaleDistanceOnField) / ScaleDistanceOnCanvas); }