snap.love/0057-distance_sq

3 lines
68 B
Plaintext

distance_sq = function(x1,y1, x2,y2)
return (x2-x1)^2+(y2-y1)^2
end