TimePosition - Zudokakikuto/OreCZML GitHub Wiki

The timePosition is an object that describes specifically the position of an object in time.

Example :

"position":{
      "referenceFrame":"INERTIAL",
      "interpolationAlgorithm":"LAGRANGE",
      "interpolationDegree":5,
      "epoch":"2022-01-17T11:59:23Z",
      "cartesian":[
        0,3463999.999999999,2.121088256123217E-10,-5999823.997418592,
        59.99999642372131,3456556.6935209,454783.84060018515,-5986896.206683625,
        119.99999284744263,3434258.5726968003,907613.3341513873,-5948168.246542231,
        179.99998927116394,3397200.9257946042,1356542.3050175253,-5883806.123725281,
        239.99998569488525,3345542.1580723063,1799641.0550702477,-5794085.766978839,
        299.99998211860657,3279502.8971331785,2235004.0564625305,-5679391.467239556,
        360.0000187754631,3199365.9442914943,2660759.5096702715,-5540215.764709001,
        420.0000151991844,3105474.6063654027,3075076.5227146074,-5377156.552265493,
        480.00001162290573,2998229.911560863,3476170.5176570807,-5190912.265023637,
        540.000008046627,2878090.8811808904,3862314.2407543506,-4982282.2960399,
        600.0000044703484,2745573.226774298,4231846.213508994,-4752164.699396231,
        660.0000008940697,2601246.771303735,4583177.125695038,-4501551.695079823,
        719.999997317791,2445732.1013164,4914795.038905164,-4231523.847348387,
        779.9999937415123,2279696.957100767,5225270.2691669185,-3943243.7882703845,
        839.9999901652336,2103852.8678127704,5513260.817174745,-3637950.3581296033,
        899.9999865889549,1918952.538554831,5777519.214684845,-3316954.0343836322,
        959.9999830126762,1725788.496391043,6016901.655620273,-2981634.520865439,
        1020.0000196695328,1525193.5022819776,6230380.280432937,-2633441.36891766,
        1080.000016093254,1318038.3213283562,6417048.928525575,-2273890.070836528,
        1140.0000125169754,1105210.6834097991,6576096.880782282,-1904525.864071967,
        1200.0000089406967,887625.8649598592,6706839.945741564,-1526941.781833812,
        1260.000005364418,666220.4435705582,6808713.688218463,-1142767.811964343,
        1320.0000017881393,441947.3836185029,6881280.534515134,-753662.3048957416,
        1379.9999982118607,215771.8610260607,6924233.764479686,-361304.65630310366,
        1439.999994635582,-11332.924797555717,6937397.71379304,32612.024539827,
        1499.9999910593033,-238389.96213094602,6920725.636938769,426388.2785541769,
        1559.9999874830246,-464422.67152679,6874296.681310966,818325.7106510316,
        1619.999983906746,-688459.1941052073,6798313.422914945,1206734.4713797197,
        1679.9999803304672,-909536.7338502049,6693101.414116013,1589940.824281838,
        1740.0000169873238,-1126705.9642047489,6559112.193891001,1966294.8168027098,
        1800.000013411045,-1339035.5092602328,6396931.211037785,2334178.0726125296,
        1860.0000098347664,-1545616.3072779314,6207289.542885459,2692011.37096615,
        1920.0000062584877,-1745563.1291555406,5991011.8510941705,3038257.2302551847,
        1980.000002682209,-1938021.5439566178,5749029.267108743,3371431.9992729174,
        2039.9999991059303,-2122168.3423242634,5482388.66484044,3690106.7042486393,
        2099.9999955296516,-2297216.47754416,5192241.501531008,3992915.625386866,
        2159.999991953373,-2462419.84715285,4879841.199344941,4278564.604752375,
        2219.9999883770943,-2617076.392271302,4546537.659973646,4545836.448164408,
        2279.9999848008156,-2760530.0707859388,4193769.8548312983,4793594.3781706225,
        2339.999981224537,-2892172.260499313,3823057.4334226497,5020784.49517123,
        2400.0000178813934,-3011443.148372595,3435992.2924626507,5226438.203763882,
        2460.0000143051147,-3117833.661981915,3034231.048328142,5409675.561379619,
        2520.000010728836,-3210888.4993110136,2619489.3554213317,5569710.506280745,
        2580.0000071525574,-3290210.813002007,2193539.0130255,5705858.921990629,
        2640.0000035762787,-3355469.105186688,1758208.8032326067,5817550.495226395,
        2700,-3406397.8894616845,1315377.5229816095,5904329.830749573,
        2759.9999964237213,-3442775.5763561456,866928.3076507638,5965818.415916735,
        2819.9999928474426,-3464448.0109381955,414775.72287496715,6001755.117119594,
        2879.999989271164,-3471322.121761114,-39148.20741297659,6011985.20289092,
        2939.9999856948853,-3463368.125032345,-492904.4609394575,5996464.158713893,
        2999.9999821186066,-3440620.537089769,-944555.3699570792,5955259.419119064,
        3060.000018775463,-3403177.528545601,-1392172.3551924725,5888549.219792199,
        3120.0000151991844,-3351199.2629527175,-1833843.3130402719,5796619.685131974,
        3180.0000116229057,-3284905.862847975,-2267679.9281684966,5679861.266696602,
        3240.000008046627,-3204575.6460273145,-2691825.1837003445,5538765.647978421,
        3300.0000044703484,-3110544.2749072714,-3104461.341137749,5373924.230945427,
        3360.0000008940697,-3003205.4618276167,-3503818.6621920303,5186029.319788825,
        3419.999997317791,-2883013.873149793,-3888185.144686561,4975879.11731564,
        3479.9999937415123,-2750490.0292256493,-4255917.072946942,4744386.181493392,
        3539.9999901652336,-2606197.5081984513,-4605434.295059152,4492537.806486568,
        3599.999986588955,-2450744.88075744,-4935230.336565094,4221399.3175305575
      ]
    }

A line is described like this :

2339.999981224537,-2892172.260499313,3823057.4334226497,5020784.49517123

| Julian date ,Position in the x-axis ,Position in the y_axis,Position in the z-axis|

Properties

dates - List<JulianDate> : The dates of each position in the Julian calendar.

positions - List<Cartesian> : The list of positions of the object in time, the list must be of the same size of dates.

cesiumInterpolationAlgorithm - CesiumInterpolationAlgorithm : The interpolation algorithm to use when interpolating. Is can take the values :

  • LAGRANGE
  • LINEAR
  • HERMITE
  • default : LAGRANGE

interpolationDegree - int : The degree of interpolation while interpolating, default : 5.

referenceFrame - String : Defines which frame to use, can take two different values :

  • "FIXED" : For a non-rotating referential frame.
  • "INERTIAL" : For a rotating inertial reference frame.
  • default : "INERTIAL" .

Build

The time position object can be build with :

  • A list of cartesian object, a list of double representing number of seconds since the start of the simulation
TimePosition timePosition = new TimePosition(cartesians, timeList);