private void changeToUp(SortedDictionary <DateTimeOffset, Double> items, List <OutlineItem> pivots, int index) { DateTimeOffset date = DataCollection[index].Time; if (items.ContainsKey(date)) { items[date] = DataCollection[index].Low; } else { items.Add(date, DataCollection[index].Low); } for (int i = Threshold; i < highers.Count; i++) { if (!items.ContainsKey(DataCollection[highers[i]].Time)) { items.Add(DataCollection[highers[i]].Time, DataCollection[highers[i]].High); } } OutlineItem newOutlineItem = new OutlineItem(date, items[date], index, PivotType.Bottom); pivots.Add(newOutlineItem); lowers.Clear(); }
public OrbitDescription(bool isLocked, SeFlg centric, OrbitSet orbits, int round, OutlineItem pivot, double slope) { IsLocked = isLocked; Pivot = pivot; Owner = orbits.Owner; Centric = centric; IsReversed = orbits.IsReversed; Slope = slope; Offset = orbits.Offset + 360 * round; }
public OrbitDescription(bool isLocked, bool isReversed, PlanetId owner, SeFlg centric, double offset, OutlineItem pivot, double slope) { IsLocked = isLocked; Pivot = pivot; Owner = owner; Centric = centric; IsReversed = isReversed; Slope = slope; Offset = offset; }