Determine whether triangles overlap