Cartesian3.fromDegreesArray with height alternative?

I want to create a polyline where each point has a different “height”. What is the appropriate way to do this? I have an array of array of positions: [latitude,longitude,height,latitude,longitude,height,[latitude,longitude,height]

However, when I pass it into positions:

positions : Cesium.Cartesian3.fromDegreesArray(points)

It does not work because from DegreesArray dees not appear to support height. How do I get around this?

I think you want Cartesian3.fromDegreesArrayHeights:

http://cesiumjs.org/Cesium/Build/Documentation/Cartesian3.html#fromDegreesArrayHeights