summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/three.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-06 00:30:47 +0000
committerKarl Berry <karl@freefriends.org>2010-07-06 00:30:47 +0000
commit4631b9a200935cb69b604b1d7995fb0d85b229f2 (patch)
treeb03258a2bf431479101a4fb0da8140bf8333125c /Master/texmf/asymptote/three.asy
parent70c6e0a0899e6702c8ef39120dc725da1b9ab36c (diff)
asymptote 2.01
git-svn-id: svn://tug.org/texlive/trunk@19252 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/three.asy')
-rw-r--r--Master/texmf/asymptote/three.asy7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf/asymptote/three.asy b/Master/texmf/asymptote/three.asy
index 528a1da13c1..4221646f632 100644
--- a/Master/texmf/asymptote/three.asy
+++ b/Master/texmf/asymptote/three.asy
@@ -251,9 +251,12 @@ projection operator * (transform3 t, projection P)
projection P=P.copy();
if(!P.absolute) {
P.camera=t*P.camera;
- P.normal=t*(P.target+P.normal);
+ triple target=P.target;
P.target=t*P.target;
- P.normal -= P.target;
+ if(P.infinity)
+ P.normal=t*(target+P.normal)-P.target;
+ else
+ P.normal=P.vector();
P.calculate();
}
return P;