Ejemplo n.º 1
0
 public IntersectionDecider(CurveKey key, float sampleLeftValue, float sampleRightValue, IntersectionChoice choice)
 {
     Key              = key;
     SampleLeftValue  = sampleLeftValue;
     SampleRightValue = sampleRightValue;
     Choice           = choice;
 }
Ejemplo n.º 2
0
 private List <CurveKey> AllIntersectOf(IntersectionChoice intersectionChoice)
 {
     return(_cgeDecider.Intersection
            .Where(decider => decider.Choice == intersectionChoice)
            .Select(decider => decider.Key)
            .ToList());
 }
Ejemplo n.º 3
0
        public void UpdateIntersection(IntersectionDecider intersectionDecider, IntersectionChoice newChoice)
        {
            var index = _cgeDecider.Intersection.FindIndex(decider => decider.Key == intersectionDecider.Key);

            _cgeDecider.Intersection[index] = new IntersectionDecider(intersectionDecider.Key, intersectionDecider.SampleLeftValue, intersectionDecider.SampleRightValue, newChoice);

            RegenerateCombinedPreview();
        }