CesiumLanguageWriterTests.TestUnitSpherical.TestFromUnitCartesian C# (CSharp) Méthode

TestFromUnitCartesian() private méthode

private TestFromUnitCartesian ( ) : void
Résultat void
        public void TestFromUnitCartesian()
        {
            double fortyFiveDegrees = Math.PI / 4.0;
            double sixtyDegrees = Math.PI / 3.0;

            UnitSpherical test = new UnitSpherical(new UnitCartesian(1.0, Math.Sqrt(3.0), -2.0));
            Assert.AreEqual(sixtyDegrees, test.Clock, Constants.Epsilon15);
            Assert.AreEqual(fortyFiveDegrees + Math.PI / 2.0, test.Cone, Constants.Epsilon15);
        }