Root/examples/meas.fpd

Source at commit 5fdea0e99a2e8543a59d508cf28e1f2ff3607f18 created 5 years 5 months ago.
By Werner Almesberger, gui_canvas.c (key_press_event): make / rotate through packages as well
1/*
2 * new-style measurements demo
3 */
4
5part "measurements"
6loop x = -2, 2
7A: vec @(0mm, 0mm)
8B: vec @(x*2mm, 2mm)
9C: vec @(0mm, 4mm)
10
11/*
12 * If we measure (x, y), y trumps x
13 */
14meas "A -> B = " A -> B 0.2mm
15meas "A <- B = " A <- B 0.5mm
16
17meas "A >> B = " A >> B 1.5mm
18
19measx "x(A -> B) = " A -> B -0.5mm
20measx "x(A >> B) = " A >> B -1mm
21measy "y(A -> B) = " A -> B -2mm
22measy "y(A >> B) = " A >> B -4.5mm
23
24meas "B -> C = " B -> C 0.5mm
25

Archive Download this file

Branches:
master



interactive