public static DegreeModel Modulo360AroundZero(this DegreeModel model)
 {
     return(new DegreeModel(DegreeHelper.Modulo360AroundZero(model.Degrees)));
 }
        public void Modulo360AroundZeroTest(double value, double expected)
        {
            var actual = DegreeHelper.Modulo360AroundZero(value);

            Assert.True(expected.EqualsWithinTolerance(actual, 6), $"expected {expected} and actual {actual} are not equal.");
        }
示例#3
0
 /// <summary>
 /// Get the argument of Perihelion 'M' = 'L' - 'ϖ' or 'L' - 'ω'' - 'Ω'
 /// </summary>
 /// <returns></returns>
 public DegreeModel GetMeanAnomalyAroundZero()
 {
     return(new DegreeModel(DegreeHelper.Modulo360AroundZero(MeanLongitude.Degrees - PerihelionLongitude.Degrees)));
 }