summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/pair.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-09 00:26:15 +0000
committerKarl Berry <karl@freefriends.org>2010-05-09 00:26:15 +0000
commit0114fbc0beecd9a094b260d78cccdc6ff3e85f1e (patch)
tree53f68a7eb4cd90f611560e9b477b55c671b94717 /Build/source/utils/asymptote/pair.h
parent539c0d5c885fa1c451a55ef8e7e1a2bbf1a32861 (diff)
asy 1.94
git-svn-id: svn://tug.org/texlive/trunk@18161 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/pair.h')
-rw-r--r--Build/source/utils/asymptote/pair.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/utils/asymptote/pair.h b/Build/source/utils/asymptote/pair.h
index 7d2716fb991..dc8f86d03b5 100644
--- a/Build/source/utils/asymptote/pair.h
+++ b/Build/source/utils/asymptote/pair.h
@@ -37,23 +37,23 @@ public:
friend pair operator+ (const pair& z, const pair& w)
{
- return pair(z.x + w.x, z.y + w.y);
+ return pair(z.x+w.x,z.y+w.y);
}
friend pair operator- (const pair& z, const pair& w)
{
- return pair(z.x - w.x, z.y - w.y);
+ return pair(z.x-w.x,z.y-w.y);
}
friend pair operator- (const pair& z)
{
- return pair(-z.x, -z.y);
+ return pair(-z.x,-z.y);
}
// Complex multiplication
friend pair operator* (const pair& z, const pair& w)
{
- return pair(z.x*w.x - z.y*w.y, z.x*w.y + w.x*z.y);
+ return pair(z.x*w.x-z.y*w.y,z.x*w.y+w.x*z.y);
}
const pair& operator+= (const pair& w)
@@ -156,7 +156,7 @@ public:
friend double dot(const pair& z, const pair& w)
{
- return z.getx()*w.getx()+z.gety()*w.gety();
+ return z.x*w.x+z.y*w.y;
}
// Return the principal branch of the square root (non-negative real part).