Hi Aaron,
AGI, the company that founded Cesium is an aerospace company, so we often visualize satellite trajectories and use polylines to do so.
Your code looks correct, I;m guessing this may just be an issue with math and converting between Cartographic and Cartesian coordinates. Here is an example I put in a previous thread.
Hope that helps!
Gabby