CylinderGeometryLibrary-dc0b434b.js 476 B

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