ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Troy Henderson <thenders@gmail.com>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	MetaPost List <metapost@tug.org>
Subject: Re: MetaPost transformation
Date: Wed, 30 May 2012 19:56:22 -0500	[thread overview]
Message-ID: <CAFP+xFJmoZ0PBWK=91SY7jPmEa_4gWGSBHfnt6S659jEiQCbAg@mail.gmail.com> (raw)
In-Reply-To: <4FC69178.8020300@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 295 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 363 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2012-05-31  0:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30 21:10 Troy Henderson
2012-05-30 21:30 ` Hans Hagen
2012-05-31  0:56   ` Troy Henderson [this message]
     [not found]     ` <CAFP+xFJmoZ0PBWK=91SY7jPmEa_4gWGSBHfnt6S659jEiQCbAg@mail.g mail.com>
2012-05-31  2:37       ` [NTG-context] " Dan Luecking
2012-05-31  3:44         ` [metapost] " Troy Henderson
2012-05-31  7:00 ` Albrecht Kauffmann
2012-05-31 12:31   ` Troy Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFP+xFJmoZ0PBWK=91SY7jPmEa_4gWGSBHfnt6S659jEiQCbAg@mail.gmail.com' \
    --to=thenders@gmail.com \
    --cc=metapost@tug.org \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).