define(["exports","./Matrix2-e3fb4559","./Cartesian3-7e9cc2ff","./Matrix4-d34187af","./defaultValue-81eec7ed","./EllipsoidTangentPlane-f566b6b5","./Math-5f585871","./PolylinePipeline-e0b963d6","./Transforms-99272364","./Check-741c5f3c"],(function(e,a,t,n,r,i,s,o,l,c){"use strict";var C=Object.freeze({ROUNDED:0,MITERED:1,BEVELED:2});const u={};function d(e,a){r.defined(u[e])||(u[e]=!0,console.warn(r.defaultValue(a,e)))}d.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.",d.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored",d.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored",d.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";const y=[new t.Cartesian3,new t.Cartesian3],f=new t.Cartesian3,m=new t.Cartesian3,g=new t.Cartesian3,h=new t.Cartesian3,w=new t.Cartesian3,p=new t.Cartesian3,x=new t.Cartesian3,M=new t.Cartesian3,P=new t.Cartesian3,E=new t.Cartesian3,T=new t.Cartesian3,b={};let z=new a.Cartographic;function B(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);F=n.Matrix3.fromRotationZ(o)}else{let e=t.Cartesian3.subtract(f[1],f[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);F=n.Matrix3.fromQuaternion(s)}L.z=u,R=n.Matrix4.multiplyTransformation(R,n.Matrix4.fromRotationTranslation(F,L,v),R);const p=G;p[0]=d;for(let e=0;e0){const r=f?2:1;for(let i=0;i=0};const Y=new t.Cartesian3,Z=new t.Cartesian3;b.computePositions=function(e,a,i,l,c){const u=l._ellipsoid,d=e.slice(0),T=[],A=new t.Cartesian3,S=new t.Cartesian3;t.Cartesian3.clone(d[0],A),t.Cartesian3.clone(d[1],S);const D=new n.Matrix4;(void 0===l._rootTransform||l._rootTransform.equals(new n.Matrix4))&&(l._rootTransform=n.Matrix4.IDENTITY),n.Matrix4.inverse(l._rootTransform,D),n.Matrix4.multiplyByPoint(D,A,A),n.Matrix4.multiplyByPoint(D,S,S),T.push(A),T.push(S);const R=function(e,a){const t=new Array(e.length);for(let n=0;n