Open In App

How to draw Inscribed circle of a triangle using p5.js ?

In this article, we will see how to draw inscribed circle (incircle) form a triangle. The incircle is nothing but the largest possible circle that can be drawn on the inside of a plane figure. So basically all sides (three) of triangle must be touched by the circle surface but not to cross the sidebars. Mathematics Background: In given triangle ABC as shown below.
Implementation: Note: You can edit and run your code by using online editor.
Article Tags :