define(["exports","./Cartesian2-2b41fabe","./Cartographic-1d953166","./Check-2514d21d","./FeatureDetection-4281d393","./OrientedBoundingBox-9c607ea0"],(function(t,e,n,o,i,r){"use strict";var u={},a=new n.t,d=new n.t,c=new n.t,f=new n.t,l=new r.x;function m(t,o,i,r,u){var d=n.t.subtract(t,o,a),c=n.t.dot(i,d),f=n.t.dot(r,d);return e.o.fromElements(c,f,u)}u.validOutline=function(t){o.o.defined("positions",t);var e=r.x.fromPoints(t,l).halfAxes,u=i.p.getColumn(e,0,d),a=i.p.getColumn(e,1,c),m=i.p.getColumn(e,2,f),s=n.t.magnitude(u),g=n.t.magnitude(a),p=n.t.magnitude(m);return!(0===s&&(0===g||0===p)||0===g&&0===p)},u.computeProjectTo2DArguments=function(t,e,u,a){o.o.defined("positions",t),o.o.defined("centerResult",e),o.o.defined("planeAxis1Result",u),o.o.defined("planeAxis2Result",a);var m,s,g=r.x.fromPoints(t,l),p=g.halfAxes,x=i.p.getColumn(p,0,d),C=i.p.getColumn(p,1,c),h=i.p.getColumn(p,2,f),P=n.t.magnitude(x),v=n.t.magnitude(C),w=n.t.magnitude(h),A=Math.min(P,v,w);return(0!==P||0!==v&&0!==w)&&(0!==v||0!==w)&&((A===v||A===w)&&(m=x),A===P?m=C:A===w&&(s=C),(A===P||A===v)&&(s=h),n.t.normalize(m,u),n.t.normalize(s,a),n.t.clone(g.center,e),!0)},u.createProjectPointsTo2DFunction=function(t,e,n){return function(o){for(var i=new Array(o.length),r=0;r<o.length;r++)i[r]=m(o[r],t,e,n);return i}},u.createProjectPointTo2DFunction=function(t,e,n){return function(o,i){return m(o,t,e,n,i)}},t.g=u}));
