示例#1
0
        public void SmallestCircleTest(double alpha1, double delta1, double alpha2, double delta2, double alpha3, double delta3, double expectedSeparation, bool expectedBType1)
        {
            bool   bType1     = false;
            double separation =
                AASAngularSeparation.SmallestCircle(alpha1, delta1, alpha2, delta2, alpha3, delta3, ref bType1);

            Assert.Equal(expectedSeparation, separation);
            Assert.Equal(bType1, expectedBType1);
        }
示例#2
0
        public void PositionAngleTest(double alpha1, double delta1, double alpha2, double delta2, double expectedPositionAngle)
        {
            double positionAngle = AASAngularSeparation.PositionAngle(alpha1, delta1, alpha2, delta2);

            Assert.Equal(expectedPositionAngle, positionAngle);
        }
示例#3
0
        public void DistanceFromGreatArcTest(double alpha1, double delta1, double alpha2, double delta2, double alpha3, double delta3, double expectedDistance)
        {
            double distance = AASAngularSeparation.DistanceFromGreatArc(alpha1, delta1, alpha2, delta2, alpha3, delta3);

            Assert.Equal(expectedDistance, distance);
        }
示例#4
0
        public void SeparationTest(double alpha1, double delta1, double alpha2, double delta2, double expectedAngularSeparation)
        {
            double angularSeparation = AASAngularSeparation.Separation(alpha1, delta1, alpha2, delta2);

            Assert.Equal(expectedAngularSeparation, angularSeparation);
        }