summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/runtriple.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-03 22:35:09 +0000
committerKarl Berry <karl@freefriends.org>2020-03-03 22:35:09 +0000
commitf6bb2b5974c9dc15a4530842100d30fe1981b973 (patch)
tree62ef95efa54d91b6eafb6df99f330dc136f77f29 /Build/source/utils/asymptote/runtriple.in
parent24dbc0b1802756862bedad6a4088f50aad68b51b (diff)
asy 2.63 sources
git-svn-id: svn://tug.org/texlive/trunk@54034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runtriple.in')
-rw-r--r--Build/source/utils/asymptote/runtriple.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/utils/asymptote/runtriple.in b/Build/source/utils/asymptote/runtriple.in
index b12e9368e02..f196b8f4a50 100644
--- a/Build/source/utils/asymptote/runtriple.in
+++ b/Build/source/utils/asymptote/runtriple.in
@@ -9,6 +9,7 @@ triple => primTriple()
#include "triple.h"
#include "path3.h"
+#include "drawelement.h"
using namespace camp;
@@ -68,8 +69,7 @@ real abs(triple v)
real polar(triple v, bool warn=true)
{
- if(!warn && v.getx() == 0.0 && v.gety() == 0.0 && v.getz() == 0.0) return 0.0;
- return v.polar();
+ return v.polar(warn);
}
real azimuth(triple v, bool warn=true)
@@ -152,11 +152,11 @@ triple bezierP(triple a, triple b, triple c, triple d, real t)
triple bezierPP(triple a, triple b, triple c, triple d, real t)
{
- return 6.0*(t*(d-a+3.0*(b-c))+a+c-2.0*b);
+ return 6.0*(t*(d-a+3.0*(b-c))+a+c)-12.0*b;
}
triple bezierPPP(triple a, triple b, triple c, triple d)
{
- return 6.0*(d-a+3.0*(b-c));
+ return 6.0*(d-a)+18.0*(b-c);
}