{"id":22963,"date":"2021-09-29T20:13:44","date_gmt":"2021-09-29T14:43:44","guid":{"rendered":"https:\/\/python-programs.com\/?p=22963"},"modified":"2021-11-22T18:35:36","modified_gmt":"2021-11-22T13:05:36","slug":"python-program-to-check-if-a-line-touches-or-intersects-a-circle","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-if-a-line-touches-or-intersects-a-circle\/","title":{"rendered":"Python Program to Check If a Line Touches or Intersects a Circle"},"content":{"rendered":"

In the previous article, we have discussed Python Program for Pizza Cut Problem (Or Circle Division by Lines)<\/a>
\nGiven the coordinates of the center point as (0,0), the radius of the circle, and the equation of a line and the task is to check whether the given line touches or intersects the circle.<\/p>\n

The line equation is in the form ax+by+c.<\/p>\n

Hence a, b, c values are given for a line equation.<\/p>\n

The three possibilities :<\/p>\n