[PD] weird pdp code

Jonathan Wilkes jancsika at yahoo.com
Fri Feb 19 21:37:14 CET 2016


Hi List,
Line 593 of pdp_imageproc_portable.c:    /* affine x, y mappings in screen coordinates */    double mapx(double _x, double _y){return cx + izx * ( c * (_x-cx) + s * (_y-cy));}    double mapy(double _x, double _y){return cy + izy * (-s * (_x-cx) + c * (_y-cy));}

These lines are found _inside_ a function called pdp_imageproc_resample_affinemap_process.

It's fun to focus on the substring "portable.c", and just read these lines a few times. :)
-Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160219/991ccabe/attachment.html>


More information about the Pd-list mailing list