summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/transform.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-06-18 22:32:52 +0000
committerKarl Berry <karl@freefriends.org>2011-06-18 22:32:52 +0000
commit98f7836b6d90b603493db0711e2034eb1b9b4a11 (patch)
tree8d205987af09a3c4681887297504bf9270b43d49 /Build/source/utils/asymptote/transform.h
parentd5ba3cbe3e11d400bd14a4dead31fb850516595f (diff)
asy 2.11 sources
git-svn-id: svn://tug.org/texlive/trunk@23044 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/transform.h')
-rw-r--r--Build/source/utils/asymptote/transform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/transform.h b/Build/source/utils/asymptote/transform.h
index 41c1f176051..d421e2baec2 100644
--- a/Build/source/utils/asymptote/transform.h
+++ b/Build/source/utils/asymptote/transform.h
@@ -225,7 +225,7 @@ inline transform rotation(transform t)
return rotate(atan2(z.gety(),z.getx()));
}
-// Remove the x and y components, so the new transform maps zero to zero.
+// Remove the x and y components, so that the new transform maps zero to zero.
inline transform shiftless(transform t)
{
return transform(0, 0, t.getxx(), t.getxy(), t.getyx(), t.getyy());
@@ -237,10 +237,10 @@ inline transform shift(transform t)
return transform(t.getx(), t.gety(), 1.0, 0, 0, 1.0);
}
-// Return the translational component of t.
+// Return the translational pair of t.
inline pair shiftpair(transform t)
{
- return (t.getx(), t.gety());
+ return pair(t.getx(), t.gety());
}
inline transform matrix(pair lb, pair rt)