const centerPoints = [];

for (let i = 0; i < count; i++) { const x = ((i + 0.5) * size) / scale; const y = longSide / 2 / scale; centerPoints.push({ x, y }); }

console.log(centerPoints); // an array of center points for the given scale and size

const scale = 12const size = 25 scale; const longSide = Mathmax1360 739;const count = MathceillongSide size; 循环求出中心点

原文地址: https://www.cveoy.top/t/topic/fEqh 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录