public Profile(Guid id, Guid userId, Guid chartId, string name, Track track, TrackPoint highestPoint, TrackPoint lowestPoint, double ascending, double descending, Climb[] climbs, ProfilePlace[] places, Leg[] legs, Result result) { Id = id; UserId = userId; ChartId = chartId; Name = name; Track = track; HighestPoint = highestPoint; LowestPoint = lowestPoint; Ascending = ascending; Descending = descending; Climbs = climbs; Places = places; Legs = legs; Result = result; }
public TrackPoint[] GetSegment(TrackPoint start, TrackPoint end) { return(GetSegment(Points, start, end)); }
public static TrackPoint[] GetSegment(TrackPoint[] points, TrackPoint start, TrackPoint end) { return(points.SkipWhile(point => !point.Equals(start)).TakeWhile(point => !point.Equals(end)).ToArray()); }
public ResultSplit(TrackPoint point, ResultSplit startSplit, ResultSplit prevSplit) : this(point.Distance, point.Time, (int)point.Time.Subtract(startSplit.Time).TotalSeconds, (int)point.Time.Subtract(startSplit.Time).TotalSeconds) { }
public ResultSplit(TrackPoint point) : this(point.Distance, point.Time, 0, 0) { }
public ProfilePlace(Place place, TrackPoint point, bool active, bool split) : this(place, point, active, split, CreateDefaultAttributes(place)) { }