Ramu.Math.overlap - HermesPasser/Ramu GitHub Wiki
static bool
Ramu.Math.overlap(rect1, rect2)
Parameters
Return
bool
: Returns true if the rect's are overlapping and false if not.
Description
Checks if the rect's are overlapping.
You can test this snippet of code here.
let r1 = new Rect(3, 5, 6, 7);
let r2 = new Rect(3, 5, 6, 7);
if (Ramu.Math.overlap(r1, r2)){
let t = new Text('r1 is overlapping the r2', 10, 10, 150);
}