public EnterData(Enter enter) { Id = enter.Id; PointCount = enter.PointCount; NormalAngle = enter.NormalAngle; CornerAngle = enter.CornerAngle; }
public bool GetBordersLine(Enter first, Enter second, out ITrajectory line) { var i = EntersList.IndexOf(first); var j = EntersList.IndexOf(second); return(BetweenEnters.TryGetValue(i, j, out line)); }
public Enter GetPrevEnter(Enter current) => GetPrevEnter(EntersList.IndexOf(current));
public Enter GetNextEnter(Enter current) => GetNextEnter(EntersList.IndexOf(current));
public bool TryGetEnter(ushort enterId, out Enter enter) { enter = EntersList.Find(e => e.Id == enterId); return(enter != null); }
public bool ContainsEnter(Enter enter) => PointPair.ContainsEnter(enter);
public Enter GetPrevEnter(Enter current) { var index = EntersList.IndexOf(current); return(EntersList[index == 0 ? EntersList.Count - 1 : index - 1]); }
public Enter GetNextEnter(Enter current) { var index = EntersList.IndexOf(current); return(EntersList[index == EntersList.Count - 1 ? 0 : index + 1]); }
public SegmentMarkupLine(Enter enter, DriveLane leftLane, DriveLane rightLane) { Enter = enter; LeftLane = leftLane; RightLane = rightLane; }
public DriveLane(Enter enter, uint laneId, NetInfo.Lane info) { Enter = enter; LaneId = laneId; Info = info; }