how to draw this in .net.android

mc 5,186 Reputation points
2025-03-12T14:29:45.3+00:00

there is two points to one circle how to draw it?

I am using canvas in OnDraw

points:(p0x,p0y)and (p1x,p1y) and the center of the circle is (x,y)

how to draw the line and the circle?
I know how to draw circle but I do not want to draw the rest of the circle.

User's image

you can see it .point to circle's tagent and the circle.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,000 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.