We don't have to do it now, but I can see this becoming a `czm_` function if we need it elsewhere.  Same goes for moving the JavaScript code from the polyline to Core.