-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path2d.distance-help.pd
88 lines (88 loc) · 2.37 KB
/
2d.distance-help.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#N canvas 68 170 706 354 10;
#X floatatom 232 238 5 0 0 0 - - -;
#X obj 31 112 cnv 15 127 127 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 69 120 cnv 15 15 15 empty c1 empty 20 12 0 14 -258699 -66577
0;
#X obj 132 203 cnv 15 15 15 empty c2 empty 20 12 0 14 -62784 -66577
0;
#X obj 13 110 vsl 15 128 0 112 0 1 rv empty empty 0 -8 0 8 -258699
-1 -1 10400 1;
#X obj 31 93 hsl 128 15 0 112 0 1 rh empty empty -2 -6 0 8 -258699
-1 -1 4500 1;
#X obj 162 111 vsl 15 128 0 112 0 1 bv empty empty 0 -8 0 8 -62784
-1 -1 1000 1;
#X obj 31 242 hsl 128 15 0 112 0 1 bh empty empty -2 -6 0 8 -62784
-1 -1 11600 1;
#N canvas 0 22 482 332 graphics.guts 0;
#X obj 100 157 pack;
#X obj 84 130 t b f;
#X msg 79 186 \; c1 pos \$1 \$2;
#X msg 246 185 \; c2 pos \$1 \$2;
#X obj 248 166 pack;
#X obj 54 121 -;
#X obj 241 80 -;
#X msg 55 99 112 \$1;
#X msg 240 61 112 \$1;
#X obj 242 137 t b b f;
#X obj 190 133 t b f;
#X obj 192 114 r bh;
#X obj 264 38 r bv;
#X obj 122 116 r rh;
#X obj 58 46 r rv;
#X obj 94 231 s red_position;
#X obj 242 236 s blue_position;
#X obj 241 105 + 100;
#X obj 36 148 + 100;
#X connect 0 0 2 0;
#X connect 0 0 15 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 4 0 3 0;
#X connect 4 0 16 0;
#X connect 5 0 18 0;
#X connect 6 0 17 0;
#X connect 7 0 5 0;
#X connect 8 0 6 0;
#X connect 9 0 0 0;
#X connect 9 1 4 0;
#X connect 9 2 4 1;
#X connect 10 0 0 0;
#X connect 10 1 4 0;
#X connect 11 0 10 0;
#X connect 12 0 8 0;
#X connect 13 0 0 0;
#X connect 14 0 7 0;
#X connect 17 0 9 0;
#X connect 18 0 1 0;
#X restore 46 266 pd graphics.guts;
#X obj 207 109 r red_position;
#X obj 334 111 r blue_position;
#X obj 334 132 unpack;
#X obj 331 172 pack;
#X floatatom 334 153 5 0 0 0 - - -;
#X floatatom 390 153 5 0 0 0 - - -;
#X obj 207 130 unpack;
#X obj 207 170 pack;
#X floatatom 207 151 5 0 0 0 - - -;
#X floatatom 250 151 5 0 0 0 - - -;
#X obj 232 204 2d.distance;
#X text 5 19 Description: Calculates the 2d distance between 2 points.
;
#X text 2 52 Drag the sliders to move the squares.;
#X text 322 199 Both inlets expect a pair of x y coordinates.;
#X text 277 238 Distance in pixels between the blue and red square.
;
#X connect 9 0 15 0;
#X connect 10 0 11 0;
#X connect 11 0 13 0;
#X connect 11 1 14 0;
#X connect 12 0 19 1;
#X connect 13 0 12 0;
#X connect 14 0 12 1;
#X connect 15 0 17 0;
#X connect 15 1 18 0;
#X connect 16 0 19 0;
#X connect 17 0 16 0;
#X connect 18 0 16 1;
#X connect 19 0 0 0;