示例#1
0
 public GpxRoutePoint(GpxRoutePoint p) : base(NODENAME)
 {
     Lat       = p.Lat;
     Lon       = p.Lon;
     Elevation = p.Elevation;
     Time      = p.Time;
 }
示例#2
0
 /// <summary>
 /// fügt einen <see cref="GpxRoutePoint"/> ein oder an
 /// </summary>
 /// <param name="p"></param>
 /// <param name="pos">negative Werte führen zum Anhängen an die Liste</param>
 public void InsertPoint(GpxRoutePoint p, int pos = -1)
 {
     if (pos < 0 || Points.Count <= pos)
     {
         Points.Add(p);
     }
     else
     {
         Points.Insert(pos, p);
     }
 }
示例#3
0
 /// <summary>
 /// fügt einen <see cref="GpxRoutePoint"/> ein oder an
 /// </summary>
 /// <param name="p"></param>
 /// <param name="r">Track</param>
 /// <param name="pos">negative Werte führen zum Anhängen an die Liste</param>
 public void InsertRoutePoint(GpxRoutePoint p, int r, int pos = -1)
 {
     GetRoute(r)?.InsertPoint(p, pos);
 }