If I use this function:
let check_overlap = ((x1 ,y1),ext1,(x2 ,y2),ext2) =>{
let r1 = ext1/2
let r2 = ext2/2
let maxdist = r1+r2
(maxdist < abs(x1-x2)) && (maxdist < abs(y1-y2))
};
I get an error when calcuationg maxdist ;
This expression has type int
It is not a function.
What am I doing wrong ?