Le dimanche 05 septembre 2010 à 13:27 -0400, Mathieu Bouchard a écrit :
On Wed, 1 Sep 2010, Ed Kelly wrote:
But, I have noticed a sinusoidal error with the graphics in my patch. So, here is the real thing!
- [abs] just before [pow 2] is completely useless.
Wrong, that depend : float -2 -> pow 2 doesn't give 4 but 0. So [abs] can be useful to get 4. I can' open the .rar archive of Ed, therefore i can't test to see if you get negative value. ++
Jack
using pow(opposite/hypotenuse,2) as an angle to [tan] doesn't make any sense whatsoever.
what you need there is just opposite/adjacent, no square, no tan. the opposite/adjacent is already the tangent of an angle, and you don't need make that angle explicit at all.
even if you just compute that ratio with [/] and [swap], there is still a sign error in half of the cases (do you know how to fix this ?).
why do you need to shear two rectangles, instead of shearing a single, longer one ?
| Mathieu Bouchard ------------------------------ Villeray, Montréal, QC _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list