Hi there again.
I was trying to achieve what I thought it should be easy but I am not able to do it.
I want to combine 2 position properties.
Imagine I have a SampledPositionProperty that has 3 samples:
const aPosition= new Cesium.SampledPositionProperty();
aPosition.addSample(0, new Cesium.Cartesian3(1,0,0));
aPosition.addSample(10, new Cesium.Cartesian3(0,1,0));
aPosition.addSample(20, new Cesium.Cartesian3(0,0,1));
Now i want to create another position that is placed in a direction (1,0,0) from the previous position.
This means its position would be (2,0,0), (1,1,0) and (1,0,0) for those 3 samples.
Something like
//Pseudocode
const anotherPosition= new Cesium.SampledPositionProperty();
aPosition.samples.ForEach(() => anotherPosition.addSample(aPosition + anotherPosition))
How could I achieve that with cesium? I have no clue.