public Lane AddLane() { Lane lane = new Lane(Lanes.Count()); Lanes.Add(lane); return lane; }
public LanePoint AddPoint(Lane lane, GitRevision revision) { LanePoint point = lane.AddPoint(lane, Points.Count); Points.Add(point); point.Revision = revision; return point; }
public LanePoint AddPoint(Lane lane, int pointNumber) { LanePoint point = new LanePoint(pointNumber); point.Lane = this; Points.Add(point); return point; }
public int GetOptimalLaneNumber(Lane lane) { return lane.LaneNumber; //return Math.Max(GetLanesForPointnumber(lane.Points[0].PointNumber).Count(), GetLanesForPointnumber(lane.Points[lane.Points.Count-1].PointNumber).Count()-1); //GetLanesForPointnumber(lane.Points[lane.Points.Count-1].PointNumber).Count())-1; }