Esempio n. 1
0
 /// <summary>
 /// Calculates length of the specific line segment
 /// </summary>
 /// <param name="segment">The line segment to be measured</param>
 /// <returns>length of the line segment in meters</returns>
 public static double GetLength(Segment <IPointGeo> segment)
 {
     return(Calculations.GetDistance2D(segment.StartPoint, segment.EndPoint));
 }
Esempio n. 2
0
 public static double GetBearing(Segment <IPointGeo> segment)
 {
     return(Calculations.GetBearing(segment.StartPoint, segment.EndPoint));
 }
Esempio n. 3
0
 /// <summary>
 /// Calculates length of the pathe between two points along the specific segment
 /// </summary>
 /// <param name="from">The point where path starts</param>
 /// <param name="to">The point where path ends</param>
 /// <param name="path">Segment that defines path geometry</param>
 /// <returns>The length of the path between points from and to along the segment</returns>
 public static double GetPathLength(IPointGeo from, IPointGeo to, Segment <IPointGeo> path)
 {
     return(Calculations.GetDistance2D(from, to));
 }