/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.96.6 * * 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. */ define(["exports","./ComponentDatatype-438cad2a"],(function(t,n){"use strict";const o={computePositions:function(t,o,e,s,r){const a=.5*t,c=-a,i=s+s,u=r?2*i:i,y=new Float64Array(3*u);let f,m=0,p=0;const d=r?3*i:0,h=r?3*(i+s):3*s;for(f=0;f<s;f++){const t=f/s*n.CesiumMath.TWO_PI,i=Math.cos(t),u=Math.sin(t),l=i*e,C=u*e,M=i*o,P=u*o;y[p+d]=l,y[p+d+1]=C,y[p+d+2]=c,y[p+h]=M,y[p+h+1]=P,y[p+h+2]=a,p+=3,r&&(y[m++]=l,y[m++]=C,y[m++]=c,y[m++]=M,y[m++]=P,y[m++]=a)}return y}};t.CylinderGeometryLibrary=o}));