From 2b60d55c919e7588f5aff15936e83c300b3660bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 22 Mar 2005 20:58:25 +0000 Subject: zexy-2.0: - use of abstractions for objects that allow it - some objects are build both as externals and abstractions (as slower fallbacks) - code-layout is now 1:1 c-file<->object (this should allow for building of zexy as a collection of externals instead as a big library) - matrix-objects have moved to iemmatrix !! svn path=/trunk/externals/zexy/; revision=2641 --- abs/pol2sph.pd | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 abs/pol2sph.pd (limited to 'abs/pol2sph.pd') diff --git a/abs/pol2sph.pd b/abs/pol2sph.pd new file mode 100644 index 0000000..046d19e --- /dev/null +++ b/abs/pol2sph.pd @@ -0,0 +1,49 @@ +#N canvas 437 75 457 368 10; +#X obj 259 82 inlet z; +#X obj 99 82 inlet r; +#X obj 179 82 inlet phi; +#X text 63 26 convert polar to spherical coordinates; +#X obj 99 125 unpack 0 0 0; +#X obj 83 331 outlet R; +#X text 280 151 R=sqrt(r^2+z^2); +#X obj 179 331 outlet Phi; +#X obj 259 331 outlet Theta; +#X text 279 170 Phi=phi; +#X text 278 187 Theta=atan2(z \, r); +#X obj 99 275 pack 0 0 0; +#X obj 99 295 unpack 0 0 0; +#X obj 178 148 t f f f; +#X obj 178 169 *; +#X obj 99 148 t f f f; +#X obj 99 169 *; +#X obj 99 212 +; +#X obj 99 237 sqrt; +#X obj 164 255 atan2; +#X obj 164 213 pack; +#X msg 164 234 \$2 \$1; +#X obj 99 105 pack \$1 \$2 \$3; +#X text 335 8 part of zexy; +#X connect 0 0 22 2; +#X connect 1 0 22 0; +#X connect 2 0 22 1; +#X connect 4 0 15 0; +#X connect 4 1 11 1; +#X connect 4 2 13 0; +#X connect 11 0 12 0; +#X connect 12 0 5 0; +#X connect 12 1 7 0; +#X connect 12 2 8 0; +#X connect 13 0 14 0; +#X connect 13 1 14 1; +#X connect 13 2 20 1; +#X connect 14 0 17 1; +#X connect 15 0 16 0; +#X connect 15 1 16 1; +#X connect 15 2 20 0; +#X connect 16 0 17 0; +#X connect 17 0 18 0; +#X connect 18 0 11 0; +#X connect 19 0 11 2; +#X connect 20 0 21 0; +#X connect 21 0 19 0; +#X connect 22 0 4 0; -- cgit v1.2.1