define(["exports","./arrayRemoveDuplicates-18786327","./Matrix2-9aa31791","./when-4bbc8319","./ComponentDatatype-93750d1a","./PolylinePipeline-64021a2e"],(function(e,i,t,r,a,n){"use strict";var o={};function l(e,i){return a.CesiumMath.equalsEpsilon(e.latitude,i.latitude,a.CesiumMath.EPSILON10)&&a.CesiumMath.equalsEpsilon(e.longitude,i.longitude,a.CesiumMath.EPSILON10)}var s=new t.Cartographic,h=new t.Cartographic;var g=new Array(2),p=new Array(2),u={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};o.computePositions=function(e,o,c,y,d,v){var m=function(e,a,n,o){var g=(a=i.arrayRemoveDuplicates(a,t.Cartesian3.equalsEpsilon)).length;if(!(g<2)){var p=r.defined(o),u=r.defined(n),c=new Array(g),y=new Array(g),d=new Array(g),v=a[0];c[0]=v;var m=e.cartesianToCartographic(v,s);u&&(m.height=n[0]),y[0]=m.height,d[0]=p?o[0]:0;for(var P=y[0]===d[0],f=1,A=1;A