예제 #1
0
        private void EnqueueOppIntersection(CircularLinkedListNode <Vertex> node, Point2D position)
        {
            double     distanceToSupportingLine = DistanceToSupportingLine(node, position); // TODO: Refactor
            SplitEvent intersection             = new SplitEvent(position, node);

            queueDictionary.Enqueue(distanceToSupportingLine, intersection);
        }
예제 #2
0
            public object Clone()
            {
                var clone = new SplitEvent();

                clone.SegmentName = this.SegmentName;
                clone.EventType   = this.EventType;
                clone.Delay       = this.Delay;
                clone.Action      = (SplitAction)this.Action.Clone();
                clone.WasUsed     = this.WasUsed;
                return(clone);
            }
예제 #3
0
 public SplitChain(SplitEvent @event)
 {
     _splitEvent = @event;
 }
예제 #4
0
 remove => RemoveHandler(SplitEvent, value);
예제 #5
0
 add => AddHandler(SplitEvent, value);
 public bool CompareTo(SplitEvent other)
 {
     return(other.PreviousMap == PreviousMap && other.NextMap == NextMap);
 }