Find a tangent point on circle?

后端 未结 9 748
别跟我提以往
别跟我提以往 2020-12-09 04:33

Given a line with first end point P(x1,y1) another end point is unknown, intersect with a circle that located at origin with radius R at only one point(tangent) T(x2,y2). An

9条回答
  •  感动是毒
    2020-12-09 05:29

    Use the x,y coordinates of the intersecting equations (the one of the circle and the one of the line). That's the point.

    If you have only one end point from which to draw the line you'll get two different points, as there will be two different tangent lines, one up and one down.

提交回复
热议问题