Previous Up Next

26.13.1  Measurement and display

Many commands to find measures have a version ending in at (or atraw) which are used to interactively find and display the measure in a 2D geometry screen. To use them, open a geometry screen with Alt+G and select a measure from the Mode ▸ Measure menu. Now, clicking on the names of objects (or, if a point is being selected, a name will be automatically generated if clicking on an open point) with the mouse and then clicking on another point will put the measurement at that point; if the mode is the version ending in at resp. atraw, then the measurement will have a label resp. appear without a label.

The commands with at and atraw versions are the following:

These commands can also be used from the command line. They are like the measurement command but take an extra argument, the point to display the measurement. When using the version ending in at, use names for the objects rather to create the objects within the measurement command.

Examples

S:=square(1/4+i/4,1/2-i/2); areaat(S,8/7+i/4)
S:=square(1/4+i/4,1/2-i/2); areaatraw(S,8/7+i/4)

More sophisticated legends are created with the legend command (see Section 26.3.3).

S:=square(1/4+i/4,1/2-i/2); a:=area(S); legend(8/7+i/4,"Area(S)="+string(a),blue)

The extract_measure command displays a measurement.

Example

A:=point(-1); B:=point(1+i); C:=point(i); extract_measure(angleat(A,B,C,0.2i))
     
arctan


1
3



          

Previous Up Next