Geometry Expressions

Dilatation App

We create an app which dilates a triangle.

The user can drag the center of the dilation. The scale is presented as a slider.

First draw the triangle, and create a dilatation.

Animation: drawing a triangle and creating a dilatation

Constrain the coordinates of the dilatation center, leaving the values as variables.

Animation: constraining the coordinates of the dilatation center as variables

When we create the app, we specify that it should not autoscale. We specify that the coordinates can be dragged and that the scale factor is attached to a slider.

Animation: creating the app, with a draggable center and a slider for the scale factor

Here is the resulting app.