예제 #1
0
파일: Algorithm.cs 프로젝트: xiechongzhu/AK
        public void CalcResultLd(double lambda0, double x, double y, double z, double vx, double vy, double vz, ConstLaunch launchFsx, double h_end,
                                 out FallPoint fallPoint, out double fallTime, out double distance)
        {
            CalculateOutput output = calc_target_ld(lambda0, x, y, z, vx, vy, vz, launchFsx, h_end);

            fallPoint = new FallPoint {
                x = output.t_z,
                y = output.t_x
            };
            distance = output.t_range;
            fallTime = output.flighttime;
        }
예제 #2
0
파일: Algorithm.cs 프로젝트: xiechongzhu/AK
        public void CalcResultYc(double latitude, double longitudey, double height, double speedEast, double speedNorth,
                                 double speedSky, ConstLaunch launchFsx, double h_end, out FallPoint fallPoint, out double fallTime, out double distance,
                                 out double x, out double y, out double z, out double vx, out double vy, out double vz)
        {
            CalculateOutput output = calc_target_yc(latitude, longitudey, height, speedEast, speedNorth, speedSky, launchFsx, h_end);

            fallPoint = new FallPoint
            {
                x = output.t_z,
                y = output.t_x
            };
            distance = output.t_range;
            fallTime = output.flighttime;
            x        = output.x;
            y        = output.y;
            z        = output.z;
            vx       = output.vx;
            vy       = output.vy;
            vz       = output.vz;
        }