define(["exports","./Matrix2-9aa31791","./EllipsoidTangentPlane-eecce7e8","./ComponentDatatype-93750d1a","./PolylinePipeline-64021a2e","./Transforms-d13cc04e","./when-4bbc8319","./RuntimeError-346a3079"],(function(e,a,r,n,t,i,s,o){"use strict";var l=Object.freeze({ROUNDED:0,MITERED:1,BEVELED:2}),C={};function c(e,a){s.defined(C[e])||(C[e]=!0,console.warn(s.defaultValue(a,e)))}c.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.",c.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored",c.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored",c.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";var u=[new a.Cartesian3,new a.Cartesian3],d=new a.Cartesian3,g=new a.Cartesian3,y=new a.Cartesian3,m=new a.Cartesian3,h=new a.Cartesian3,f=new a.Cartesian3,p=new a.Cartesian3,w=new a.Cartesian3,v=new a.Cartesian3,x=new a.Cartesian3,E=new a.Cartesian3,P={},M=new a.Cartographic;function b(e,r,n,t){var i,s=e[0],o=e[1],l=a.Cartesian3.angleBetween(s,o),C=Math.ceil(l/t),c=new Array(C);if(r===n){for(i=0;i=0?-C:C}(u=a.Cartesian3.normalize(u,u),n,e,o);D=a.Matrix3.fromRotationZ(g,D),V.z=l,S=a.Matrix4.multiplyTransformation(S,a.Matrix4.fromRotationTranslation(D,V,A),S);var y=R;y[0]=C;for(var m=0;m0)for(var p=g?2:1,w=0;w=0};var U=new a.Cartesian3,_=new a.Cartesian3;P.computePositions=function(e,r,i,s,o){var C=s._ellipsoid,E=function(e,a){for(var r=new Array(e.length),n=0;n