define(["exports","./arrayRemoveDuplicates-6dfd408b","./Rectangle-82621db8","./when-54335d57","./Math-7a8129d6","./PolylinePipeline-c53252ef"],function(e,f,A,w,C,b){"use strict";var i={};var M=new A.Cartographic,E=new A.Cartographic;var F=new Array(2),H=new Array(2),L={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};i.computePositions=function(e,i,t,r,a,n){var o=function(e,i,t,r){var a=(i=f.arrayRemoveDuplicates(i,A.Cartesian3.equalsEpsilon)).length;if(!(a<2)){var n=w.defined(r),o=w.defined(t),l=new Array(a),h=new Array(a),s=new Array(a),g=i[0];l[0]=g;var p=e.cartesianToCartographic(g,M);o&&(p.height=t[0]),h[0]=p.height,s[0]=n?r[0]:0;for(var u,d,c=h[0]===s[0],v=1,y=1;y