Geometry Expressions

Incircle App

We create an app which allows the user to specify the side lengths of a triangle, and which outputs the radius of the incircle.

We use text entry and output.

First draw the triangle and constrain the lengths of its sides.

Animation: drawing a triangle and constraining its side lengths

Now create the incircle, and measure its radius.

Animation: creating the incircle and measuring its radius

When we create the app, we can add a title and some text to the html page. We can specify how the variables will get values - in this case from text input boxes.

Animation: creating the app, with a title, text and input boxes for the side lengths

Here is the resulting app.