check triangle rectangle intersect