meface/docs/.vuepress/public/cesium/Workers/CylinderGeometryLibrary-319...

2 lines
496 B
JavaScript

define(["exports","./ComponentDatatype-8f55628c"],(function(t,n){"use strict";const o={computePositions:function(t,o,e,s,r){const c=.5*t,i=-c,a=s+s,u=new Float64Array(3*(r?2*a:a));let f,y=0,m=0;const p=r?3*a:0,h=r?3*(a+s):3*s;for(f=0;f<s;f++){const t=f/s*n.CesiumMath.TWO_PI,a=Math.cos(t),l=Math.sin(t),C=a*e,M=l*e,d=a*o,P=l*o;u[m+p]=C,u[m+p+1]=M,u[m+p+2]=i,u[m+h]=d,u[m+h+1]=P,u[m+h+2]=c,m+=3,r&&(u[y++]=C,u[y++]=M,u[y++]=i,u[y++]=d,u[y++]=P,u[y++]=c)}return u}};t.CylinderGeometryLibrary=o}));