Exemple #1
0
        public Vector3D ReprojectGeodeticToGeocentric(Vector3D geodetic)
        {
            var xys_as_array = new List <double>
            {
                geodetic.X *Math.PI / 180,
                geodetic.Y *Math.PI / 180
            }.ToArray();

            var zs_as_array = new double[]
            {
                geodetic.Z
            };

            GeocentricConverter.GeodeticToGeocentric(xys_as_array, zs_as_array, 0, 1);

            return(new Vector3D(Convert.ToSingle(xys_as_array[0]), Convert.ToSingle(xys_as_array[1]), Convert.ToSingle(zs_as_array[0])));
        }