[metapost] [NTG-context] MetaPost transformation

Troy Henderson thenders at gmail.com
Thu May 31 02:56:22 CEST 2012


Well then in case anyone needs such a transformation, I've constructed the
(non-unique) transformation T

> t:=angle(f,e);
> q:=e++f;
> p:=(c*f-d*e)/q;
> s:=(c*e+d*f)/(q**2);
> transform T;
> T:=identity rotated t xscaled p yscaled q slanted s shifted (a,b);

This yields T=(a,b,c,d,e,f).

Troy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20120530/c6089e20/attachment.html>


More information about the metapost mailing list