/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.110.1 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ import{a as N}from"./chunk-FAHIADKY.js";import{a as z}from"./chunk-HL2OONDA.js";import{b as B}from"./chunk-P2SABSEB.js";import"./chunk-GTKXIG42.js";import{a as O}from"./chunk-EUSUDYW7.js";import{a as F}from"./chunk-XYZU5ZKW.js";import{b as q,c as x,d as v}from"./chunk-ADEEKX5Q.js";import{d as C}from"./chunk-O5E7EBKP.js";import"./chunk-LEJDAZA7.js";import{c as m}from"./chunk-GMFQULD7.js";import{a as y}from"./chunk-IS523WNE.js";import{a as M,b as Y,c as b}from"./chunk-4ZQSV4FU.js";import{a as P}from"./chunk-CLQ5X6HS.js";import"./chunk-6Y3U6IMI.js";import"./chunk-7DENS74L.js";import{a as A}from"./chunk-FOJGNIAW.js";import{a as k}from"./chunk-UGI536VH.js";import{e as S}from"./chunk-BQUQ5TPM.js";var j=new C,K=new C,Q=new M,X=new m;function V(t,e){let o=t._ellipsoid,g=e.height,r=e.width,d=e.northCap,h=e.southCap,a=g,w=2,u=0,E=4;d&&(w-=1,a-=1,u+=1,E-=2),h&&(w-=1,a-=1,u+=1,E-=2),u+=w*r+2*a-E;let i=new Float64Array(u*3),n=0,l=0,p,s=Q;if(d)N.computePosition(e,o,!1,l,0,s),i[n++]=s.x,i[n++]=s.y,i[n++]=s.z;else for(p=0;p=0;p--)N.computePosition(e,o,!1,l,p,s),i[n++]=s.x,i[n++]=s.y,i[n++]=s.z;for(p=0,l=g-2;l>0;l--)N.computePosition(e,o,!1,l,p,s),i[n++]=s.x,i[n++]=s.y,i[n++]=s.z;let T=i.length/3*2,R=O.createTypedArray(i.length/3,T),c=0;for(let H=0;H