mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 04:11:48 -05:00
2 lines
496 B
JavaScript
2 lines
496 B
JavaScript
define(["exports","./ComponentDatatype-692a36d3"],(function(t,n){"use strict";const o={computePositions:function(t,o,e,s,r){const i=.5*t,a=-i,c=s+s,u=new Float64Array(3*(r?2*c:c));let y,f=0,m=0;const p=r?3*c:0,d=r?3*(c+s):3*s;for(y=0;y<s;y++){const t=y/s*n.CesiumMath.TWO_PI,c=Math.cos(t),h=Math.sin(t),l=c*e,C=h*e,M=c*o,P=h*o;u[m+p]=l,u[m+p+1]=C,u[m+p+2]=a,u[m+d]=M,u[m+d+1]=P,u[m+d+2]=i,m+=3,r&&(u[f++]=l,u[f++]=C,u[f++]=a,u[f++]=M,u[f++]=P,u[f++]=i)}return u}};t.CylinderGeometryLibrary=o}));
|