Hi,
I would like to convert a position that is specified in the ICRF reference frame to the Earth-Fixed frame.
I am using the computeIcrfToFixedMatrix() function from Cesium Transforms. The rotation matrix that I get is undefined, regardless whether I preload the transformation data or not.
Here is my code:
var now = Cesium.JulianDate.now();
// Without preloading
var result = Cesium.Transforms.computeIcrfToFixedMatrix(now);
console.log(result);
// With preloading
Cesium.Transforms.preloadIcrfFixed(new Cesium.TimeInterval(now)).then(
function(){
var result2 = Cesium.Transforms.computeIcrfToFixedMatrix(now);
console.log(result2);
},
function(){
console.log(“Something went wrong with preloading!”);
}
);
``
Could you please help?
Thanks,
Laszlo