diff options
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)); } |