How to get new Cesium.SampledProperty pitch angle direction angle and roll angle in

I have set up entity orientation, sampledOrientationProperty=new Cesium.SampledProperty(Cesium.Quaternion);
and added temporal direction information.
const time = Cesium.JulianDate.addSeconds(
start,
xxx,
new Cesium.JulianDate()
);
var pitch = Cesium.Math.toRadians(90);
var heading = Cesium.Math.toRadians(0);
var roll = Cesium.Math.toRadians(0);
var hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);
var quaternion = Cesium.Transforms.headingPitchRollQuaternion(
position,
hpr,
Cesium.Ellipsoid.WGS84,
Cesium.Transforms.localFrameToFixedFrameGenerator(
“north”,
“west”
)
);
sampledOrientationProperty.addSample(time, quaternion);

Now I’m through clock.onTick event ,get entity orientation = sampledOrientationProperty.getValue(time); how get pitch angle, direction angle, roll angle on orientation

Hello @freefer - may be this answer can help you as helped me.
Have a good day)