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.

Picture 1

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

Picture 2

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.

Picture 3

Here is the resulting app.