define(["exports","./Matrix2-9aa31791","./when-4bbc8319","./RuntimeError-346a3079","./EllipsoidGeodesic-dd8f2afb","./EllipsoidRhumbLine-30c47ff4","./IntersectionTests-96a04219","./ComponentDatatype-93750d1a","./Plane-318d6937"],(function(a,e,r,t,i,n,o,s,c){"use strict";var l={numberOfPoints:function(a,r,t){var i=e.Cartesian3.distance(a,r);return Math.ceil(i/t)},numberOfPointsRhumbLine:function(a,e,r){var t=Math.pow(a.longitude-e.longitude,2)+Math.pow(a.latitude-e.latitude,2);return Math.max(1,Math.ceil(Math.sqrt(t/(r*r))))}},u=new e.Cartographic;l.extractHeights=function(a,e){for(var r=a.length,t=new Array(r),i=0;i0){t=r.defaultValue(t,e.Matrix4.IDENTITY);var s=e.Matrix4.inverseTransformation(t,h),l=e.Matrix4.multiplyByPoint(s,e.Cartesian3.ZERO,f),u=e.Cartesian3.normalize(e.Matrix4.multiplyByPointAsVector(s,e.Cartesian3.UNIT_Y,g),g),w=c.Plane.fromPointNormal(l,u,C),P=e.Cartesian3.normalize(e.Matrix4.multiplyByPointAsVector(s,e.Cartesian3.UNIT_X,p),p),T=c.Plane.fromPointNormal(l,P,d),y=1;i.push(e.Cartesian3.clone(a[0]));for(var A=i[0],E=a.length,b=1;b