1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-14 20:31:53 -05:00
sdrangel/plugins/feature/map/Cesium/Workers/CylinderGeometryLibrary-471159cb.js

2 lines
496 B
JavaScript
Raw Normal View History

2022-02-04 15:41:22 -05:00
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}));