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); }
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); }
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); }
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); }