diff options
author | Karl Berry <karl@freefriends.org> | 2017-03-23 22:37:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-03-23 22:37:58 +0000 |
commit | 511d523f9c0456937f392cab51c70f0dcf6ae1bc (patch) | |
tree | 2575821a91e042c74a61c3cb6387cc769e0a0b87 /Build/source/utils/asymptote/triple.h | |
parent | 5db9b67730d1ad8391da2e18faa01062b64d1da0 (diff) |
asy 2.41 sources
git-svn-id: svn://tug.org/texlive/trunk@43590 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/triple.h')
-rw-r--r-- | Build/source/utils/asymptote/triple.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/triple.h b/Build/source/utils/asymptote/triple.h index 193c1a2fcef..de6767a29f1 100644 --- a/Build/source/utils/asymptote/triple.h +++ b/Build/source/utils/asymptote/triple.h @@ -328,12 +328,13 @@ inline void boundstriples(double& x, double& y, double& z, } } +extern const double third; + // return the maximum distance squared of points c0 and c1 from // the respective internal control points of z0--z1. inline double Straightness(const triple& z0, const triple& c0, const triple& c1, const triple& z1) { - static const double third=1.0/3.0; triple v=third*(z1-z0); return std::max(abs2(c0-v-z0),abs2(z1-v-c1)); } |