Any function can get heading, pitch and roll based on the coordinates of the vertices of a polygon

Hello All,

I need to get heading, pitch, and roll for an specific polygon. I have the coordinates in Cartesian of the vertices of a polygon, is there any function can do that?

I did a calculation by myself, but the result seems not right when I test it in Cesium.

Many thanks in advance!



I don’t believe there is any function like that built into Cesium. Make sure in your calculation that everything is computed using meters and radians. Those are the units Cesium uses.