Exemple #1
0
        public void GeocToDatabase()
        {
            CoordConverter.SetRefLatLon(Real.DatabaseRefLatlon);
            var database = CoordConverter.GeocentricToDatabase(Real.Geoc);

            Debug.Log(database.X + " -> " + Real.Database.X);
            Debug.Log(database.Y + " -> " + Real.Database.Y);
            Debug.Log(database.Z + " -> " + Real.Database.Z);

            Assert.AreEqual(Real.Database.X, database.X, 0.015);
            Assert.AreEqual(Real.Database.Y, database.Y, 0.015);
            Assert.AreEqual(Real.Database.Z, database.Z, 0.015);
        }