Cesium.Ray from Cesium.Cartesian3 and Cesium.HeadingPitchRoll

Is it possible to create a Cesium.Ray from a Cesium.Cartesian3 and a Cesium.HeadingPitchRoll?

If so, how would one go about this?