Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getArrayBySize(entity, size: number) {
const location = CoordinateConverter.cartesian3ToLatLon(entity.position);
const arr = [
{
pos: Cesium.Cartesian3.fromDegrees(location.lon + 1, location.lat + 1, location.height),
innerArray: [
{
pos: Cesium.Cartesian3.fromDegrees(location.lon + 1.5, location.lat + 1.5, location.height),
id: '0'
},
],
id: '0'
},
{
pos: Cesium.Cartesian3.fromDegrees(location.lon + 1, location.lat - 1, location.height),
innerArray: [
{
pos: Cesium.Cartesian3.fromDegrees(location.lon + 1.5, location.lat - 1.5, location.height),