public void Setup()
        {
            var angleIntervallCalculator                = new AngleIntervallCalculator();
            var angelInterpolationCalculator            = new AngelInterpolationCalculator(angleIntervallCalculator);
            var sphericalCoordinatesIntervallCalculator =
                new SphericalCoordinatesIntervallCalculator(angelInterpolationCalculator);
            var radiusPhiThetaToSphericalCoordinatesConverter = new RadiusPhiThetaToSphericalCoordinatesConverter();

            m_Sut = new SphericalArcCalculator(sphericalCoordinatesIntervallCalculator,
                                               radiusPhiThetaToSphericalCoordinatesConverter);
        }
Пример #2
0
        public void Setup()
        {
            m_FromAngle = Angle.ForZeroDegrees;
            m_ToAngle   = Angle.For90Degrees;

            m_Calculator = Substitute.For <IAngelInterpolationCalculator>();
            m_Calculator.Angles.Returns(m_PhiAngles,
                                        m_ThetaAngles);

            m_Sut = new SphericalCoordinatesIntervallCalculator(m_Calculator);
        }