tangent and intersection