Subject: | untransform coordinates |
Date: | Mon, 10 Jan 2011 08:34:05 +1100 |
To: | bug-Geometry-AffineTransform [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
After transforming some coordinate values to screen pixel positions I
thought to do the reverse, taking a pixel position back to original
values. Is there an untransform hiding in the code?, like
($x,$y) = $aff->untransform($x,y)
I suppose an ->invert() or something could invert the whole transform
object. So maybe $rev=$aff->clone->invert to get a reverse. Though I
think I only want a handful of untransforms.
Incidentally, as a suggestion for the docs, I like seeing a sample call
for methods rather than a description in words (or a sample as well as
words). I find a sample easier to read quickly, cut and paste, etc.