Пример #1
0
 public EnterData(Enter enter)
 {
     Id          = enter.Id;
     PointCount  = enter.PointCount;
     NormalAngle = enter.NormalAngle;
     CornerAngle = enter.CornerAngle;
 }
Пример #2
0
        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));
        }
Пример #3
0
 public Enter GetPrevEnter(Enter current) => GetPrevEnter(EntersList.IndexOf(current));
Пример #4
0
 public Enter GetNextEnter(Enter current) => GetNextEnter(EntersList.IndexOf(current));
Пример #5
0
 public bool TryGetEnter(ushort enterId, out Enter enter)
 {
     enter = EntersList.Find(e => e.Id == enterId);
     return(enter != null);
 }
Пример #6
0
 public bool ContainsEnter(Enter enter) => PointPair.ContainsEnter(enter);
Пример #7
0
        public Enter GetPrevEnter(Enter current)
        {
            var index = EntersList.IndexOf(current);

            return(EntersList[index == 0 ? EntersList.Count - 1 : index - 1]);
        }
Пример #8
0
        public Enter GetNextEnter(Enter current)
        {
            var index = EntersList.IndexOf(current);

            return(EntersList[index == EntersList.Count - 1 ? 0 : index + 1]);
        }
Пример #9
0
 public SegmentMarkupLine(Enter enter, DriveLane leftLane, DriveLane rightLane)
 {
     Enter     = enter;
     LeftLane  = leftLane;
     RightLane = rightLane;
 }
Пример #10
0
 public DriveLane(Enter enter, uint laneId, NetInfo.Lane info)
 {
     Enter  = enter;
     LaneId = laneId;
     Info   = info;
 }