diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-12 23:15:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-12 23:15:42 +0000 |
commit | 3e889cecea02516b3f73d6574c3791a45e02c50a (patch) | |
tree | 03c51e54634cd5344e0a9f1e96d20a35ffc61c0d /Master/texmf-dist/asymptote/plain_arrows.asy | |
parent | 064ff9e4245f101ee0f01334f3dcba961ba37422 (diff) |
asymptote 2.33
git-svn-id: svn://tug.org/texlive/trunk@37365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/plain_arrows.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/plain_arrows.asy | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Master/texmf-dist/asymptote/plain_arrows.asy b/Master/texmf-dist/asymptote/plain_arrows.asy index d4220103ce0..d7d79217dd4 100644 --- a/Master/texmf-dist/asymptote/plain_arrows.asy +++ b/Master/texmf-dist/asymptote/plain_arrows.asy @@ -83,17 +83,9 @@ SimpleHead.head=new path(path g, position position=EndPoint, pen p=currentpen, path r=subpath(g,position,0); pair x=point(r,0); real t=arctime(r,size); - pair y=point(r,t); - path base=arrowbase(r,y,t,size); path left=rotate(-angle,x)*r; path right=rotate(angle,x)*r; - real[] T=arrowbasepoints(base,left,right,1); - pair denom=point(right,T[1])-y; - real factor=denom != 0 ? length((point(left,T[0])-y)/denom) : 1; - path left=rotate(-angle*factor,x)*r; - path right=rotate(angle*factor,x)*r; - real[] T=arrowbasepoints(base,left,right,1); - return subpath(left,T[0],0)--subpath(right,0,T[1]); + return subpath(left,t,0)--subpath(right,0,t); }; arrowhead HookHead(real dir=arrowdir, real barb=arrowbarb) |