/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.110 * * 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-CSXABXKU.js";import{a as z}from"./chunk-VPPZOZTD.js";import{b as B}from"./chunk-34TCIMPD.js";import"./chunk-6J64DNFK.js";import{a as O}from"./chunk-SE5RZMX2.js";import{a as F}from"./chunk-DUV4VG3N.js";import{b as q,c as x,d as v}from"./chunk-KMWU6SNL.js";import{d as C}from"./chunk-6NWI43LF.js";import"./chunk-4O5G66XJ.js";import{c as m}from"./chunk-FC5SLPQQ.js";import{a as y}from"./chunk-LYGOJ6CO.js";import{a as M,b as Y,c as b}from"./chunk-ZWQPISEL.js";import{a as P}from"./chunk-BL2B3H3H.js";import"./chunk-IYZKEJTR.js";import"./chunk-G6NVUYVR.js";import{a as A}from"./chunk-KFPKN74R.js";import{a as k}from"./chunk-OWNWTDHH.js";import{e as S}from"./chunk-55OKX5AT.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