CylinderGeometryLibrary-b0214ab1.js 463 B

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