From 162b9550e5d3ab93f02fa342864f22190581838c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 8 Apr 2009 04:10:37 +0000 Subject: switched to use mapping2radians svn path=/trunk/externals/mapping/; revision=10980 --- spherical2cartesian.pd | 46 ++++++++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 18 deletions(-) (limited to 'spherical2cartesian.pd') diff --git a/spherical2cartesian.pd b/spherical2cartesian.pd index 6e43032..cd19713 100644 --- a/spherical2cartesian.pd +++ b/spherical2cartesian.pd @@ -1,23 +1,29 @@ -#N canvas 536 22 580 359 10; -#X obj 397 295 outlet z; +#N canvas 310 22 686 438 10; +#X obj 397 395 outlet z; #X obj 267 12 inlet phi; -#X obj 9 291 outlet x; -#X obj 207 295 outlet y; -#X obj 107 89 purepd/float_argument \$1; -#X obj 267 89 purepd/float_argument \$2; -#X obj 427 89 purepd/float_argument \$3; -#X obj 47 12 inlet r; -#X obj 427 18 inlet theta; -#X obj 300 44 loadbang; -#X obj 107 129 pack float float float; -#X obj 107 150 trigger anything anything anything; -#X obj 14 268 expr $f1 * sin($f2) * cos($f3); -#X obj 397 268 expr $f1 * cos($f2); -#X obj 207 268 expr $f1 * sin($f2) * sin($f3); +#X obj 14 391 outlet x; +#X obj 207 395 outlet y; +#X obj 107 99 purepd/float_argument \$1; +#X obj 267 99 purepd/float_argument \$2; +#X obj 427 99 purepd/float_argument \$3; +#X obj 17 12 inlet r; +#X obj 427 12 inlet theta; +#X obj 316 56 loadbang; +#X obj 107 169 pack float float float; +#X obj 107 190 trigger anything anything anything; +#X obj 14 338 expr $f1 * sin($f2) * cos($f3); +#X obj 397 338 expr $f1 * cos($f2); +#X obj 207 338 expr $f1 * sin($f2) * sin($f3); +#X obj 397 314 unpack float float float; +#X obj 427 125 mapping/mapping2radians; +#X obj 267 125 mapping/mapping2radians; +#X text 390 413 released under the GNU GPL; +#X text 43 413 (C) Copyright 2008 Hans-Christoph Steiner +; #X connect 1 0 5 0; #X connect 4 0 10 0; -#X connect 5 0 10 1; -#X connect 6 0 10 2; +#X connect 5 0 17 0; +#X connect 6 0 16 0; #X connect 7 0 10 0; #X connect 8 0 6 0; #X connect 9 0 5 0; @@ -26,7 +32,11 @@ #X connect 10 0 11 0; #X connect 11 0 12 0; #X connect 11 1 14 0; -#X connect 11 2 13 0; +#X connect 11 2 15 0; #X connect 12 0 2 0; #X connect 13 0 0 0; #X connect 14 0 3 0; +#X connect 15 0 13 0; +#X connect 15 1 13 1; +#X connect 16 0 10 2; +#X connect 17 0 10 1; -- cgit v1.2.1