20#include <ns3/geographic-positions.h>
33 6371000, 1968747.27116279, -5154247.27116279, -5154247.27116279,
34 1968747.27116279, 6371000, 1968747.27116279, 608376.364418605,
35 -1592750, -1592750.00000000, 608376.364418605, 1968747.27116279,
36 -5154247.27116279, -1592750, 4169873.63558139, 4169873.63558139,
37 -1592750.00000000, -5154247.27116279, -5154247.27116279, -1592750.00000000,
38 4169873.63558139, 4169873.63558140, -1592750.00000000, -5154247.27116279,
39 1968747.27116279, 608376.364418605, -1592750.00000000, -1592750.00000000,
40 608376.364418604, 1968747.27116279, 6371000, 1968747.27116279,
41 -5154247.27116279, -5154247.27116279, 1968747.27116279, 6371000,
42 6371200, 1968809.07456167, -5154409.07456167, -5154409.07456167,
43 1968809.07456166, 6371200, 1968809.07456167, 608395.462719168,
44 -1592800, -1592800.00000000, 608395.462719167, 1968809.07456167,
45 -5154409.07456167, -1592800, 4170004.53728083, 4170004.53728083,
46 -1592800.00000000, -5154409.07456167, -5154409.07456167, -1592800,
47 4170004.53728083, 4170004.53728083, -1592800.00000000, -5154409.07456167,
48 1968809.07456166, 608395.462719167, -1592800.00000000, -1592800.00000000,
49 608395.462719167, 1968809.07456166, 6371200, 1968809.07456167,
50 -5154409.07456167, -5154409.07456167, 1968809.07456166, 6371200,
51 6371400, 1968870.87796054, -5154570.87796054, -5154570.87796054,
52 1968870.87796054, 6371400, 1968870.87796054, 608414.561019730,
53 -1592850, -1592850.00000000, 608414.561019730, 1968870.87796054,
54 -5154570.87796054, -1592850, 4170135.43898027, 4170135.43898027,
55 -1592850.00000000, -5154570.87796054, -5154570.87796054, -1592850.00000000,
56 4170135.43898027, 4170135.43898027, -1592850.00000000, -5154570.87796054,
57 1968870.87796054, 608414.561019730, -1592850.00000000, -1592850.00000000,
58 608414.561019729, 1968870.87796054, 6371400, 1968870.87796054,
59 -5154570.87796054, -5154570.87796054, 1968870.87796054, 6371400,
60 6371600, 1968932.68135942, -5154732.68135941, -5154732.68135942,
61 1968932.68135941, 6371600, 1968932.68135942, 608433.659320293,
62 -1592900, -1592900.00000000, 608433.659320292, 1968932.68135942,
63 -5154732.68135941, -1592900.00000000, 4170266.34067971, 4170266.34067971,
64 -1592900.00000000, -5154732.68135941, -5154732.68135942, -1592900.00000000,
65 4170266.34067971, 4170266.34067971, -1592900.00000000, -5154732.68135942,
66 1968932.68135941, 608433.659320292, -1592900.00000000, -1592900.00000000,
67 608433.659320292, 1968932.68135941, 6371600, 1968932.68135942,
68 -5154732.68135941, -5154732.68135942, 1968932.68135941, 6371600,
69 6371800, 1968994.48475829, -5154894.48475829, -5154894.48475829,
70 1968994.48475829, 6371800, 1968994.48475829, 608452.757620855,
71 -1592950, -1592950.00000000, 608452.757620855, 1968994.48475829,
72 -5154894.48475829, -1592950, 4170397.24237914, 4170397.24237914,
73 -1592950.00000000, -5154894.48475829, -5154894.48475829, -1592950.00000000,
74 4170397.24237914, 4170397.24237915, -1592950.00000000, -5154894.48475829,
75 1968994.48475829, 608452.757620855, -1592950.00000000, -1592950.00000000,
76 608452.757620854, 1968994.48475829, 6371800, 1968994.48475829,
77 -5154894.48475829, -5154894.48475829, 1968994.48475829, 6371800,
78 6372000, 1969056.28815717, -5155056.28815716, -5155056.28815717,
79 1969056.28815716, 6372000, 1969056.28815717, 608471.855921418,
80 -1593000, -1593000, 608471.855921417, 1969056.28815717,
81 -5155056.28815716, -1593000.00000000, 4170528.14407858, 4170528.14407858,
82 -1593000.00000000, -5155056.28815716, -5155056.28815717, -1593000.00000000,
83 4170528.14407858, 4170528.14407858, -1593000.00000000, -5155056.28815717,
84 1969056.28815716, 608471.855921417, -1593000.00000000, -1593000.00000000,
85 608471.855921417, 1969056.28815716, 6372000, 1969056.28815717,
86 -5155056.28815716, -5155056.28815717, 1969056.28815716, 6372000};
93 -1.56044495147356e-09,
99 -4.82204008791920e-10,
105 1.26242648452870e-09,
111 1.26242648452870e-09,
117 -4.82204008791919e-10,
123 -1.56044495147356e-09,
129 -1.56049393734552e-09,
135 -4.82219146258841e-10,
141 1.26246611493160e-09,
147 1.26246611493160e-09,
153 -4.82219146258841e-10,
159 -1.56049393734552e-09,
165 -1.56054292321749e-09,
171 -4.82234283725763e-10,
177 1.26250574533451e-09,
183 1.26250574533451e-09,
189 -4.82234283725763e-10,
195 -1.56054292321749e-09,
201 -1.56059190908946e-09,
207 -4.82249421192685e-10,
213 1.26254537573741e-09,
219 1.26254537573741e-09,
225 -4.82249421192684e-10,
231 -1.56059190908946e-09,
237 -1.56064089496142e-09,
243 -4.82264558659606e-10,
249 1.26258500614032e-09,
255 1.26258500614032e-09,
261 -4.82264558659606e-10,
267 -1.56064089496142e-09,
273 -1.56068988083339e-09,
279 -4.82279696126528e-10,
285 1.26262463654322e-09,
291 1.26262463654322e-09,
297 -4.82279696126528e-10,
303 -1.56068988083339e-09};
335 -1.56044495147356e-09,
336 -1.56044495147356e-09,
337 -1.56044495147356e-09,
338 -1.56044495147356e-09,
339 -1.56044495147356e-09,
340 -1.56044495147356e-09,
371 -1.56049393734552e-09,
372 -1.56049393734552e-09,
373 -1.56049393734552e-09,
374 -1.56049393734552e-09,
375 -1.56049393734552e-09,
376 -1.56049393734552e-09,
407 -1.56054292321749e-09,
408 -1.56054292321749e-09,
409 -1.56054292321749e-09,
410 -1.56054292321749e-09,
411 -1.56054292321749e-09,
412 -1.56054292321749e-09,
443 -1.56059190908946e-09,
444 -1.56059190908946e-09,
445 -1.56059190908946e-09,
446 -1.56059190908946e-09,
447 -1.56059190908946e-09,
448 -1.56059190908946e-09,
479 -1.56064089496142e-09,
480 -1.56064089496142e-09,
481 -1.56064089496142e-09,
482 -1.56064089496142e-09,
483 -1.56064089496142e-09,
484 -1.56064089496142e-09,
515 -1.56068988083339e-09,
516 -1.56068988083339e-09,
517 -1.56068988083339e-09,
518 -1.56068988083339e-09,
519 -1.56068988083339e-09,
520 -1.56068988083339e-09};
523 6378137, 1970952.72545164, -5160021.22545164, -5160021.22545164,
524 1970952.72545164, 6378137, 1976947.14312992, 610910.264208145,
525 -1599383.83577310, -1599383.83577310, 610910.264208145, 1976947.14312992,
526 -5165998.77753988, -1596381.41518003, 4179380.80394997, 4179380.80394997,
527 -1596381.41518003, -5165998.77753988, -5165998.77753988, -1596381.41518003,
528 4179380.80394997, 4179380.80394997, -1596381.41518003, -5165998.77753988,
529 1976947.14312991, 610910.264208145, -1599383.83577310, -1599383.83577310,
530 610910.264208145, 1976947.14312991, 6378137, 1970952.72545164,
531 -5160021.22545164, -5160021.22545164, 1970952.72545164, 6378137,
532 6378337, 1971014.52885052, -5160183.02885052, -5160183.02885052,
533 1971014.52885052, 6378337, 1977008.94652879, 610929.362508708,
534 -1599433.83577310, -1599433.83577310, 610929.362508708, 1977008.94652879,
535 -5166160.58093876, -1596431.41518003, 4179511.70564940, 4179511.70564940,
536 -1596431.41518003, -5166160.58093876, -5166160.58093876, -1596431.41518003,
537 4179511.70564940, 4179511.70564940, -1596431.41518003, -5166160.58093876,
538 1977008.94652879, 610929.362508708, -1599433.83577310, -1599433.83577310,
539 610929.362508707, 1977008.94652879, 6378337, 1971014.52885052,
540 -5160183.02885052, -5160183.02885052, 1971014.52885052, 6378337,
541 6378537, 1971076.33224939, -5160344.83224939, -5160344.83224940,
542 1971076.33224939, 6378537, 1977070.74992767, 610948.460809271,
543 -1599483.83577310, -1599483.83577310, 610948.460809270, 1977070.74992767,
544 -5166322.38433763, -1596481.41518003, 4179642.60734884, 4179642.60734884,
545 -1596481.41518003, -5166322.38433763, -5166322.38433763, -1596481.41518003,
546 4179642.60734884, 4179642.60734884, -1596481.41518003, -5166322.38433763,
547 1977070.74992766, 610948.460809270, -1599483.83577310, -1599483.83577310,
548 610948.460809270, 1977070.74992766, 6378537, 1971076.33224939,
549 -5160344.83224939, -5160344.83224940, 1971076.33224939, 6378537,
550 6378737, 1971138.13564827, -5160506.63564827, -5160506.63564827,
551 1971138.13564827, 6378737, 1977132.55332654, 610967.559109833,
552 -1599533.83577310, -1599533.83577310, 610967.559109833, 1977132.55332654,
553 -5166484.18773651, -1596531.41518003, 4179773.50904828, 4179773.50904828,
554 -1596531.41518003, -5166484.18773651, -5166484.18773651, -1596531.41518003,
555 4179773.50904828, 4179773.50904828, -1596531.41518003, -5166484.18773651,
556 1977132.55332654, 610967.559109833, -1599533.83577310, -1599533.83577310,
557 610967.559109832, 1977132.55332654, 6378737, 1971138.13564827,
558 -5160506.63564827, -5160506.63564827, 1971138.13564827, 6378737,
559 6378937, 1971199.93904714, -5160668.43904714, -5160668.43904714,
560 1971199.93904714, 6378937, 1977194.35672542, 610986.657410395,
561 -1599583.83577310, -1599583.83577310, 610986.657410395, 1977194.35672542,
562 -5166645.99113538, -1596581.41518003, 4179904.41074772, 4179904.41074772,
563 -1596581.41518003, -5166645.99113538, -5166645.99113538, -1596581.41518003,
564 4179904.41074772, 4179904.41074772, -1596581.41518003, -5166645.99113538,
565 1977194.35672541, 610986.657410395, -1599583.83577310, -1599583.83577310,
566 610986.657410395, 1977194.35672541, 6378937, 1971199.93904714,
567 -5160668.43904714, -5160668.43904714, 1971199.93904714, 6378937,
568 6379137, 1971261.74244602, -5160830.24244602, -5160830.24244602,
569 1971261.74244602, 6379137, 1977256.16012429, 611005.755710958,
570 -1599633.83577310, -1599633.83577310, 611005.755710958, 1977256.16012429,
571 -5166807.79453425, -1596631.41518003, 4180035.31244715, 4180035.31244715,
572 -1596631.41518003, -5166807.79453425, -5166807.79453426, -1596631.41518003,
573 4180035.31244715, 4180035.31244715, -1596631.41518003, -5166807.79453426,
574 1977256.16012429, 611005.755710958, -1599633.83577310, -1599633.83577310,
575 611005.755710957, 1977256.16012429, 6379137, 1971261.74244602,
576 -5160830.24244602, -5160830.24244602, 1971261.74244602, 6379137};
583 -1.56219301231466e-09,
589 -4.84212398183511e-10,
595 1.26530477346267e-09,
601 1.26530477346267e-09,
607 -4.84212398183511e-10,
613 -1.56219301231466e-09,
619 -1.56224199818663e-09,
625 -4.84227535650433e-10,
631 1.26534440386558e-09,
637 1.26534440386558e-09,
643 -4.84227535650433e-10,
649 -1.56224199818663e-09,
655 -1.56229098405859e-09,
661 -4.84242673117355e-10,
667 1.26538403426848e-09,
673 1.26538403426848e-09,
679 -4.84242673117354e-10,
685 -1.56229098405859e-09,
691 -1.56233996993056e-09,
697 -4.84257810584276e-10,
703 1.26542366467138e-09,
709 1.26542366467138e-09,
715 -4.84257810584276e-10,
721 -1.56233996993056e-09,
727 -1.56238895580252e-09,
733 -4.84272948051198e-10,
739 1.26546329507429e-09,
745 1.26546329507429e-09,
751 -4.84272948051198e-10,
757 -1.56238895580252e-09,
763 -1.56243794167449e-09,
769 -4.84288085518120e-10,
775 1.26550292547719e-09,
781 1.26550292547719e-09,
787 -4.84288085518119e-10,
793 -1.56243794167449e-09};
825 -1.55173509862111e-09,
826 -1.55173509862111e-09,
827 -1.55173509862111e-09,
828 -1.55173509862111e-09,
829 -1.55173509862111e-09,
830 -1.55173509862111e-09,
861 -1.55178408449307e-09,
862 -1.55178408449307e-09,
863 -1.55178408449307e-09,
864 -1.55178408449307e-09,
865 -1.55178408449307e-09,
866 -1.55178408449307e-09,
897 -1.55183307036504e-09,
898 -1.55183307036504e-09,
899 -1.55183307036504e-09,
900 -1.55183307036504e-09,
901 -1.55183307036504e-09,
902 -1.55183307036504e-09,
933 -1.55188205623700e-09,
934 -1.55188205623700e-09,
935 -1.55188205623700e-09,
936 -1.55188205623700e-09,
937 -1.55188205623700e-09,
938 -1.55188205623700e-09,
969 -1.55193104210897e-09,
970 -1.55193104210897e-09,
971 -1.55193104210897e-09,
972 -1.55193104210897e-09,
973 -1.55193104210897e-09,
974 -1.55193104210897e-09,
1005 -1.55198002798094e-09,
1006 -1.55198002798094e-09,
1007 -1.55198002798094e-09,
1008 -1.55198002798094e-09,
1009 -1.55198002798094e-09,
1010 -1.55198002798094e-09};
1013 6378137, 1970952.72545164, -5160021.22545164, -5160021.22545164,
1014 1970952.72545164, 6378137, 1976947.14310045, 610910.264199039,
1015 -1599383.83574926, -1599383.83574926, 610910.264199039, 1976947.14310045,
1016 -5165998.77751058, -1596381.41517097, 4179380.80392626, 4179380.80392626,
1017 -1596381.41517097, -5165998.77751058, -5165998.77751058, -1596381.41517097,
1018 4179380.80392626, 4179380.80392626, -1596381.41517097, -5165998.77751058,
1019 1976947.14310045, 610910.264199039, -1599383.83574926, -1599383.83574926,
1020 610910.264199039, 1976947.14310045, 6378137, 1970952.72545164,
1021 -5160021.22545164, -5160021.22545164, 1970952.72545164, 6378137,
1022 6378337, 1971014.52885052, -5160183.02885052, -5160183.02885052,
1023 1971014.52885052, 6378337, 1977008.94649932, 610929.362499602,
1024 -1599433.83574926, -1599433.83574926, 610929.362499601, 1977008.94649932,
1025 -5166160.58090945, -1596431.41517097, 4179511.70562570, 4179511.70562570,
1026 -1596431.41517097, -5166160.58090945, -5166160.58090945, -1596431.41517097,
1027 4179511.70562570, 4179511.70562570, -1596431.41517097, -5166160.58090945,
1028 1977008.94649932, 610929.362499601, -1599433.83574926, -1599433.83574926,
1029 610929.362499601, 1977008.94649932, 6378337, 1971014.52885052,
1030 -5160183.02885052, -5160183.02885052, 1971014.52885052, 6378337,
1031 6378537, 1971076.33224939, -5160344.83224939, -5160344.83224940,
1032 1971076.33224939, 6378537, 1977070.74989820, 610948.460800164,
1033 -1599483.83574926, -1599483.83574926, 610948.460800164, 1977070.74989820,
1034 -5166322.38430833, -1596481.41517097, 4179642.60732513, 4179642.60732514,
1035 -1596481.41517097, -5166322.38430833, -5166322.38430833, -1596481.41517097,
1036 4179642.60732514, 4179642.60732514, -1596481.41517097, -5166322.38430833,
1037 1977070.74989820, 610948.460800164, -1599483.83574926, -1599483.83574926,
1038 610948.460800163, 1977070.74989820, 6378537, 1971076.33224939,
1039 -5160344.83224939, -5160344.83224940, 1971076.33224939, 6378537,
1040 6378737, 1971138.13564827, -5160506.63564827, -5160506.63564827,
1041 1971138.13564827, 6378737, 1977132.55329707, 610967.559100727,
1042 -1599533.83574926, -1599533.83574926, 610967.559100726, 1977132.55329707,
1043 -5166484.18770720, -1596531.41517097, 4179773.50902457, 4179773.50902457,
1044 -1596531.41517097, -5166484.18770720, -5166484.18770720, -1596531.41517097,
1045 4179773.50902457, 4179773.50902457, -1596531.41517097, -5166484.18770720,
1046 1977132.55329707, 610967.559100726, -1599533.83574926, -1599533.83574926,
1047 610967.559100726, 1977132.55329707, 6378737, 1971138.13564827,
1048 -5160506.63564827, -5160506.63564827, 1971138.13564827, 6378737,
1049 6378937, 1971199.93904714, -5160668.43904714, -5160668.43904714,
1050 1971199.93904714, 6378937, 1977194.35669595, 610986.657401289,
1051 -1599583.83574926, -1599583.83574926, 610986.657401289, 1977194.35669595,
1052 -5166645.99110608, -1596581.41517097, 4179904.41072401, 4179904.41072401,
1053 -1596581.41517097, -5166645.99110608, -5166645.99110608, -1596581.41517097,
1054 4179904.41072401, 4179904.41072401, -1596581.41517097, -5166645.99110608,
1055 1977194.35669595, 610986.657401289, -1599583.83574926, -1599583.83574926,
1056 610986.657401288, 1977194.35669595, 6378937, 1971199.93904714,
1057 -5160668.43904714, -5160668.43904714, 1971199.93904714, 6378937,
1058 6379137, 1971261.74244602, -5160830.24244602, -5160830.24244602,
1059 1971261.74244602, 6379137, 1977256.16009482, 611005.755701852,
1060 -1599633.83574926, -1599633.83574926, 611005.755701851, 1977256.16009482,
1061 -5166807.79450495, -1596631.41517097, 4180035.31242345, 4180035.31242345,
1062 -1596631.41517097, -5166807.79450495, -5166807.79450495, -1596631.41517097,
1063 4180035.31242345, 4180035.31242345, -1596631.41517097, -5166807.79450495,
1064 1977256.16009482, 611005.755701851, -1599633.83574926, -1599633.83574926,
1065 611005.755701851, 1977256.16009482, 6379137, 1971261.74244602,
1066 -5160830.24244602, -5160830.24244602, 1971261.74244602, 6379137};
1073 -1.56219301231466e-09,
1079 -4.84212398176294e-10,
1085 1.26530477345549e-09,
1091 1.26530477345549e-09,
1097 -4.84212398176293e-10,
1103 -1.56219301231466e-09,
1109 -1.56224199818663e-09,
1115 -4.84227535643215e-10,
1121 1.26534440385840e-09,
1127 1.26534440385840e-09,
1133 -4.84227535643215e-10,
1139 -1.56224199818663e-09,
1145 -1.56229098405859e-09,
1151 -4.84242673110137e-10,
1157 1.26538403426130e-09,
1163 1.26538403426130e-09,
1169 -4.84242673110137e-10,
1175 -1.56229098405859e-09,
1181 -1.56233996993056e-09,
1187 -4.84257810577059e-10,
1193 1.26542366466421e-09,
1199 1.26542366466421e-09,
1205 -4.84257810577058e-10,
1211 -1.56233996993056e-09,
1217 -1.56238895580252e-09,
1223 -4.84272948043980e-10,
1229 1.26546329506711e-09,
1235 1.26546329506711e-09,
1241 -4.84272948043980e-10,
1247 -1.56238895580252e-09,
1253 -1.56243794167449e-09,
1259 -4.84288085510902e-10,
1265 1.26550292547002e-09,
1271 1.26550292547002e-09,
1277 -4.84288085510902e-10,
1283 -1.56243794167449e-09};
1315 -1.55173509867228e-09,
1316 -1.55173509867228e-09,
1317 -1.55173509867228e-09,
1318 -1.55173509867228e-09,
1319 -1.55173509867228e-09,
1320 -1.55173509867228e-09,
1351 -1.55178408454425e-09,
1352 -1.55178408454425e-09,
1353 -1.55178408454425e-09,
1354 -1.55178408454425e-09,
1355 -1.55178408454425e-09,
1356 -1.55178408454425e-09,
1387 -1.55183307041621e-09,
1388 -1.55183307041621e-09,
1389 -1.55183307041621e-09,
1390 -1.55183307041621e-09,
1391 -1.55183307041621e-09,
1392 -1.55183307041621e-09,
1423 -1.55188205628818e-09,
1424 -1.55188205628818e-09,
1425 -1.55188205628818e-09,
1426 -1.55188205628818e-09,
1427 -1.55188205628818e-09,
1428 -1.55188205628818e-09,
1459 -1.55193104216015e-09,
1460 -1.55193104216015e-09,
1461 -1.55193104216015e-09,
1462 -1.55193104216015e-09,
1463 -1.55193104216015e-09,
1464 -1.55193104216015e-09,
1495 -1.55198002803211e-09,
1496 -1.55198002803211e-09,
1497 -1.55198002803211e-09,
1498 -1.55198002803211e-09,
1499 -1.55198002803211e-09,
1500 -1.55198002803211e-09};
1544 void DoRun()
override;
1554 static std::string
Name(
double latitude,
1571 std::ostringstream oss;
1572 oss <<
"Geo->Cart: "
1573 <<
"LAT-LON-ALT-SPHEROID = " << latitude <<
" deg - " << longitude <<
" deg - " << altitude
1577 case GeographicPositions::SPHERE:
1580 case GeographicPositions::GRS80:
1583 case GeographicPositions::WGS84:
1596 :
TestCase(
Name(latitude, longitude, altitude, sphType)),
1597 m_latitude(latitude),
1598 m_longitude(longitude),
1599 m_altitude(altitude),
1612 Vector cart = GeographicPositions::GeographicToCartesianCoordinates(
m_latitude,
1616 if (
m_sphType == GeographicPositions::SPHERE)
1621 "x coordinate (" << cart.x
1622 <<
") is incorrect "
1623 "for perfect sphere model in iteration "
1628 "y coordinate (" << cart.y
1629 <<
") is incorrect "
1630 "for perfect sphere model in iteration "
1635 "z coordinate (" << cart.z
1636 <<
") is incorrect "
1637 "for perfect sphere model in iteration "
1640 else if (
m_sphType == GeographicPositions::GRS80)
1645 "x coordinate (" << cart.x
1646 <<
") is incorrect "
1647 "for GRS80 model in iteration "
1652 "y coordinate (" << cart.y
1653 <<
") is incorrect "
1654 "for GRS80 model in iteration "
1659 "z coordinate (" << cart.z
1660 <<
") is incorrect "
1661 "for GRS80 model in iteration "
1669 "x coordinate (" << cart.x
1670 <<
") is incorrect "
1671 "for WGS84 model in iteration "
1676 "y coordinate (" << cart.y
1677 <<
") is incorrect "
1678 "for WGS84 model in iteration "
1683 "z coordinate (" << cart.z
1684 <<
") is incorrect "
1685 "for WGS84 model in iteration "
1723 void DoRun()
override;
1733 static std::string
Name(
double latitude,
1749 std::ostringstream oss;
1750 oss <<
"Cart->Geo: "
1751 <<
"LAT-LON-ALT-SPHEROID = " << latitude <<
" deg - " << longitude <<
" deg - " << altitude
1755 case GeographicPositions::SPHERE:
1758 case GeographicPositions::GRS80:
1761 case GeographicPositions::WGS84:
1774 :
TestCase(
Name(latitude, longitude, altitude, sphType)),
1775 m_latitude(latitude),
1776 m_longitude(longitude),
1777 m_altitude(altitude),
1789 Vector cart = GeographicPositions::GeographicToCartesianCoordinates(
m_latitude,
1793 Vector geo = GeographicPositions::CartesianToGeographicCoordinates(cart,
m_sphType);
1798 GeographicPositions::GeographicToCartesianCoordinates(geo.x, geo.y, geo.z,
m_sphType);
1802 "Double conversion out-of-tolerance: "
1824 for (
double altitude = 0; altitude <= 1000; altitude += 200)
1826 for (
double latitude = 0; latitude <= 360; latitude += 72)
1828 for (
double longitude = 0; longitude <= 360; longitude += 72)
1833 GeographicPositions::SPHERE,
1839 GeographicPositions::SPHERE,
1847 for (
double altitude = 0; altitude <= 1000; altitude += 200)
1849 for (
double latitude = 0; latitude <= 360; latitude += 72)
1851 for (
double longitude = 0; longitude <= 360; longitude += 72)
1856 GeographicPositions::GRS80,
1862 GeographicPositions::GRS80,
1870 for (
double altitude = 0; altitude <= 1000; altitude += 200)
1872 for (
double latitude = 0; latitude <= 360; latitude += 72)
1874 for (
double longitude = 0; longitude <= 360; longitude += 72)
1879 GeographicPositions::WGS84,
1885 GeographicPositions::WGS84,
Cartesian to Geo Test Case.
~CartesianToGeoTestCase() override
CartesianToGeoTestCase(double latitude, double longitude, double altitude, GeographicPositions::EarthSpheroidType sphType, int i)
Constructor.
double m_longitude
longitude (deg)
void DoRun() override
Implementation to actually run this TestCase.
double m_altitude
altitude (m)
static std::string Name(double latitude, double longitude, double altitude, GeographicPositions::EarthSpheroidType sphType)
Name function.
GeographicPositions::EarthSpheroidType m_sphType
spheroid type
double m_latitude
latitude (deg)
Geo To Cartesian Test Case.
double m_longitude
longitude (deg)
double m_altitude
altitude (m)
void DoRun() override
Implementation to actually run this TestCase.
GeoToCartesianTestCase(double latitude, double longitude, double altitude, GeographicPositions::EarthSpheroidType sphType, int i)
Constructor.
double m_latitude
latitude (deg)
GeographicPositions::EarthSpheroidType m_sphType
spheroid type
static std::string Name(double latitude, double longitude, double altitude, GeographicPositions::EarthSpheroidType sphType)
Name function.
~GeoToCartesianTestCase() override
Geo To Cartesian Test Suite.
GeoToCartesianTestSuite()
EarthSpheroidType
Spheroid model to use for earth: perfect sphere (SPHERE), Geodetic Reference System 1980 (GRS80),...
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
const double ZSPHERE_MATLAB[216]
const double YGRS80_MATLAB[216]
const double YWGS84_MATLAB[216]
const double ZWGS84_MATLAB[216]
const double YSPHERE_MATLAB[216]
const double XSPHERE_MATLAB[216]
static GeoToCartesianTestSuite g_GeoToCartesianTestSuite
const double XWGS84_MATLAB[216]
const double ZGRS80_MATLAB[216]
const double XGRS80_MATLAB[216]
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
#define NS_TEST_ASSERT_MSG_LT_OR_EQ(actual, limit, msg)
Test that an actual value is less than or equal to a limit and report and abort if not.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
double CalculateDistance(const Vector3D &a, const Vector3D &b)
static std::string Name(std::string str, uint32_t totalStreamSize, uint32_t sourceWriteSize, uint32_t serverReadSize, uint32_t serverWriteSize, uint32_t sourceReadSize, bool useIpv6)