Example #1
0
 public TimeAngleConverter(DateTimeOffset zero, Double cycleInDays)
 {
     Rule         = TimeConvertRules.SelfBased;
     Zero         = zero;
     CycleDays    = cycleInDays;
     DisplayColor = Color.Orchid;
     ShiftedDays  = 0;
     DegreeOf     = new TimeToDegreeDelegate(selfTimeToDegree);
 }
Example #2
0
 public TimeAngleConverter(DateTimeOffset zero)
 {
     Rule         = TimeConvertRules.SelfBased;
     Zero         = zero;
     CycleDays    = Ephemeris.AverageYearLength;
     ShiftedDays  = 0;
     DisplayColor = Color.Orchid;
     DegreeOf     = new TimeToDegreeDelegate(selfTimeToDegree);
 }
Example #3
0
        private TimeAngleConverter(TimeConvertRules rule)
        {
            Rule         = rule;
            DisplayColor = Color.Purple;
            switch (rule)
            {
            case TimeConvertRules.SolarBased:
                DegreeOf = new TimeToDegreeDelegate(SolarDegrees);
                break;

            case TimeConvertRules.CalendarBased:
                DegreeOf = new TimeToDegreeDelegate(CalendarDegrees);
                break;

            case TimeConvertRules.EquinoxBased:
                DegreeOf = new TimeToDegreeDelegate(DegreeToEquinox);
                break;

            default:
                throw new Exception();
            }
        }
Example #4
0
 public TimeAngleConverter(TimeToDegreeDelegate convertDel)
 {
     Rule         = TimeConvertRules.Outside;
     DegreeOf     = convertDel;
     DisplayColor = Color.Orange;
 }