Re: [NTG-context] MetaPost transformation

2012-05-31 Thread Troy Henderson
Albrecht, The issue was to be able to define the transform t using its six components. Troy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / htt

Re: [NTG-context] MetaPost transformation

2012-05-31 Thread Albrecht Kauffmann
Hello Troy, if you declare a transform variable (e.g., t), it works: transform t; t := identity rotated 270 yscaled 0.5; show identity transformed t; (0,0,0,1,-0.5,0) Greetings Albrecht On Wed, 30 May 2012, Troy Henderson wrote: I've encountered a MetaPost issue, and since many MetaPost us

Re: [NTG-context] MetaPost transformation

2012-05-30 Thread Troy Henderson
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

Re: [NTG-context] MetaPost transformation

2012-05-30 Thread Hans Hagen
On 30-5-2012 23:10, Troy Henderson wrote: I've encountered a MetaPost issue, and since many MetaPost users also use ConTeXt (and vice-versa), I am posting this question on both lists. The command show identity rotated 270 yscaled 0.5; outputs (0,0,0,1,-0.5,0) as expected, while the command

[NTG-context] MetaPost transformation

2012-05-30 Thread Troy Henderson
I've encountered a MetaPost issue, and since many MetaPost users also use ConTeXt (and vice-versa), I am posting this question on both lists. The command > show identity rotated 270 yscaled 0.5; outputs (0,0,0,1,-0.5,0) as expected, while the command > show identity transformed (0,0,0,1,-0.5,