/// <summary>Calculates the cumulative distance travelled by a turtle in the X axis /// </summary> /// <param name="fcp">footprints collection</param> /// <returns>total distance travelled in X</returns> double distInX(FootprintCollection fpc) { double dist = 0; Point p = new Point(0, 0); foreach (Footprint foot in fpc) { dist += Math.Abs(foot.Position.X - p.X); p = foot.Position; } return(dist); }
double calcTotalDistance(FootprintCollection fps) { return(0.0); }