New answers tagged

0

The best way to approach this is to get the values of the coordinates to the x axis around the object, then generate the y coordinate using some simple math. function genCircle(x,y,radius,precision){ // x and y are coordinates of object let arr=[]; for(let i=-radius;i<=radius;i+=precision){ let ty=(radius**2-(i)**2)/(y); arr.push([i+x,ty-y]); /...


Top 50 recent answers are included