define(["exports","./Matrix2-e3fb4559","./Cartesian3-7e9cc2ff","./Matrix4-d34187af","./defaultValue-81eec7ed","./EllipsoidTangentPlane-f566b6b5","./Math-5f585871","./PolylinePipeline-e0b963d6","./Transforms-99272364"],(function(e,a,t,n,r,i,s,o,l){"use strict";var c=Object.freeze({ROUNDED:0,MITERED:1,BEVELED:2});const C=[new t.Cartesian3,new t.Cartesian3],u=new t.Cartesian3,f=new t.Cartesian3,y=new t.Cartesian3,m=new t.Cartesian3,d=new t.Cartesian3,w=new t.Cartesian3,p=new t.Cartesian3,x=new t.Cartesian3,g=new t.Cartesian3,h=new t.Cartesian3,M=new t.Cartesian3,T={};let P=new a.Cartographic;function E(e,a,n,r){const i=e[0],s=e[1],o=t.Cartesian3.angleBetween(i,s),l=Math.ceil(o/r),c=new Array(l);let C;if(a===n){for(C=0;C=0?-C:C}(r,s,e,C);S=n.Matrix3.fromRotationZ(o)}else{let e=t.Cartesian3.subtract(m[1],m[0],new t.Cartesian3);e=t.Cartesian3.normalize(e,e);const a=new t.Cartesian3(0,0,-1);let r=new t.Cartesian3;t.Cartesian3.cross(a,e,r);t.Cartesian3.magnitude(r)<1e-5&&(r=a),t.Cartesian3.normalize(r,r);const i=t.Cartesian3.angleBetween(a,e),s=l.Quaternion.fromAxisAngle(r,i);S=n.Matrix3.fromQuaternion(s)}V.z=u,A=n.Matrix4.multiplyTransformation(A,n.Matrix4.fromRotationTranslation(S,V,D),A);const g=I;g[0]=f;for(let e=0;e0){const r=m?2:1;for(let i=0;i=0};const q=new t.Cartesian3,Y=new t.Cartesian3;T.computePositions=function(e,a,i,l,M){const B=l._ellipsoid,z=e.slice(0),b=[],A=new t.Cartesian3,D=new t.Cartesian3;t.Cartesian3.clone(z[0],A),t.Cartesian3.clone(z[1],D);const S=new n.Matrix4;(void 0===l._rootTransform||l._rootTransform.equals(new n.Matrix4))&&(l._rootTransform=n.Matrix4.IDENTITY),n.Matrix4.inverse(l._rootTransform,S),n.Matrix4.multiplyByPoint(S,A,A),n.Matrix4.multiplyByPoint(S,D,D),b.push(A),b.push(D);const I=function(e,a){const t=new Array(e.length);for(let n=0;n