Пример #1
0
        public void DatabaseToGeoc()
        {
            CoordConverter.SetRefLatLon(Real.DatabaseRefLatlon);
            var geoc = CoordConverter.DatabaseToGeocentric(Real.Database);

            Debug.Log(geoc.X + " -> " + Real.Geoc.X);
            Debug.Log(geoc.Y + " -> " + Real.Geoc.Y);
            Debug.Log(geoc.Z + " -> " + Real.Geoc.Z);

            Assert.AreEqual(Real.Geoc.X, geoc.X, 0.015);
            Assert.AreEqual(Real.Geoc.Y, geoc.Y, 0.015);
            Assert.AreEqual(Real.Geoc.Z, geoc.Z, 0.015);
        }