define(["exports","./Cartographic-67e73ef9","./when-92c6cf3c","./Check-52a7d806","./Rectangle-bab7abf0","./EllipsoidGeodesic-04ac0e77","./EllipsoidRhumbLine-8847d1a1","./IntersectionTests-a42760d9","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./Plane-f8d22530"],(function(e,t,r,a,n,i,o,c,s,u,h){"use strict";var f={numberOfPoints:function(e,r,a){var n=t.t.distance(e,r);return Math.ceil(n/a)},numberOfPointsRhumbLine:function(e,t,r){var a=Math.pow(e.longitude-t.longitude,2)+Math.pow(e.latitude-t.latitude,2);return Math.ceil(Math.sqrt(a/(r*r)))}},l=new t.t$1;f.extractHeights=function(e,t){for(var r=e.length,a=new Array(r),n=0;n0&&(d=function(e,t){var r=P;r.length=e;for(var a=0;a0){a=r.u(a,u.y.IDENTITY);var o=u.y.inverseTransformation(a,g),s=u.y.multiplyByPoint(o,t.t.ZERO,p),f=t.t.normalize(u.y.multiplyByPointAsVector(o,t.t.UNIT_Y,v),v),l=h.o.fromPointNormal(s,f,d),P=t.t.normalize(u.y.multiplyByPointAsVector(o,t.t.UNIT_X,m),m),A=h.o.fromPointNormal(s,P,w),C=1;n.push(t.t.clone(e[0]));for(var S=n[0],b=e.length,R=1;R