PageSourceSearch

https://3dtrees.earth/assets/Point-CvQYgt85.js

js 3dtrees.earth collected 2026-10-07 15:46:23 UTC 5,625 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a11585-69a3-7972-9a0a-a80226b7e81c")}catch(e){}}();import{b as S,D as G,E,k as g,l as X,n as Y,m as F,C as M}from"./extent-I-eR3KPh.js";import{d as T}from"./math-DAon4ME5.js";import{a as N,m as j,d as h}from"./Object-CcUaLeJe.js";import{g as v,a as p}from"./proj-DaVmBXpc.js";import{c as R,a as _}from"./transform-B0e-Mfcz.js";import{t as x,r as b,s as L,a as O}from"./transform-6cd064rB.js";window.CESIUM_BASE_URL="/cesium/";const C=_(),P=[NaN,NaN];class U extends N{constructor(){super(),this.extent_=S(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=j((t,e,r)=>{if(!r)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(r),i.getSimplifiedGeometry(e)})}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return h()}closestPointXY(t,e,r,i){return h()}containsXY(t,e){return this.closestPointXY(t,e,P,Number.MIN_VALUE)===0}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return h()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&G(e),this.extentRevision_=this.getRevision()}return E(this.extent_,t)}rotate(t,e){h()}scale(t,e,r){h()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return h()}getType(){return h()}applyTransform(t){h()}intersectsExtent(t){return h()}translate(t,e){h()}transform(t,e){const r=v(t),i=r.getUnits()=="tile-pixels"?function(s,a,l){const o=r.getExtent(),d=r.getWorldExtent(),m=g(d)/g(o);R(C,d[0],d[3],m,-m,0,0,0);const f=x(s,0,s.length,l,C,a),u=p(r,e);return u?u(f,f,l):f}:p(r,e);return this.applyTransform(i),this}}class I extends U{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return X(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return h()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=y(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){h()}setLayout(t,e,r){let i;if(t)i=y(t);else{for(let s=0;s<r;++s){if(e.length===0){this.layout="XY",this.stride=2;return}e=e[0]}i=e.length,t=q(i)}this.layout=t,this.stride=i}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(t,e){const r=this.getFlatCoordinates();if(r){const i=this.getStride();b(r,0,r.length,i,t,e,r),this.changed()}}scale(t,e,r){e===void 0&&(e=t),r||(r=Y(this.getExtent()));const i=this.getFlatCoordinates();if(i){const s=this.getStride();L(i,0,i.length,s,t,e,r,i),this.changed()}}translate(t,e){const r=this.getFlatCoordinates();if(r){const i=this.getStride();O(r,0,r.length,i,t,e,r),this.changed()}}}function q(n){let t;return n==2?t="XY":n==3?t="XYZ":n==4&&(t="XYZM"),t}function y(n){let t;return n=="XY"?t=2:n=="XYZ"||n=="XYM"?t=3:n=="XYZM"&&(t=4),t}function H(n,t,e){const r=n.getFlatCoordinates();if(!r)return null;const i=n.getStride();return x(r,0,r.length,i,t,e)}function D(n,t,e,r){for(let i=0,s=e.length;i<s;++i)n[t++]=e[i];return t}function Z(n,t,e,r){for(let i=0,s=e.length;i<s;++i){const a=e[i];for(let l=0;l<r;++l)n[t++]=a[l]}return t}function A(n,t,e,r,i){i=i||[];let s=0;for(let a=0,l=e.length;a<l;++a){const o=Z(n,t,e[a],r);i[s++]=o,t=o}return i.length=s,i}function V(n,t,e,r,i){i=i||[];let s=0;for(let a=0,l=e.length;a<l;++a){const o=A(n,t,e[a],r,i[s]);o.length===0&&(o[0]=t),i[s++]=o,t=o[o.length-1]}return i.length=s,i}class c extends I{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new c(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,r,i){const s=this.flatCoordinates,a=T(t,e,s[0],s[1]);if(a<i){const l=this.stride;for(let o=0;o<l;++o)r[o]=s[o];return r.length=l,a}return i}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return F(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return M(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=D(this.flatCoordinates,0,t,this.stride),this.changed()}}const J=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}));
1export{U as G,c as P,I as S,V as a,A as b,J as c,Z as d,q as g,H as t};
2//# sourceMappingURL=Point-CvQYgt85.js.map
3
4//# chunkId=01a11585-69a3-7972-9a0a-a80226b7e81c

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.