コード例 #1
0
        public Cartesian GeoToCartesian(Geo plh)
        {
            Cartesian cart = null;

            cart.X = GeographicalToCartesianX(plh.phi, plh.lambda);
            cart.Y = GeographicalToCartesianY(plh.phi, plh.lambda);
            cart.Z = GeographicalToCartesianZ(plh.phi);
            return(cart);
        }
コード例 #2
0
        public Geo CretesianToGeo(Cartesian XYZ)
        {
            Geo geo = null;

            geo.phi    = CartesianToGeographicalLatitude(XYZ.Y, XYZ.X);
            geo.lambda = CartesianToGeographicalLongitude(XYZ.Y, XYZ.X);
            geo.h      = CartesianToh(XYZ.Y, XYZ.X, geo.phi);
            return(geo);
        }