summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawelement.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-07 18:10:02 +0000
committerKarl Berry <karl@freefriends.org>2017-03-07 18:10:02 +0000
commita6dc131e8a2ff8ce660543a262d771380fdf1b4e (patch)
tree33ab70fd89ae0842cedcfce676aaa6d64a9eb7dc /Build/source/utils/asymptote/drawelement.h
parent78cc0e8d7d1977f9cf5c8c9ba3d9de81ed6e03a3 (diff)
asy 2.40 sources
git-svn-id: svn://tug.org/texlive/trunk@43422 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawelement.h')
-rw-r--r--Build/source/utils/asymptote/drawelement.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/drawelement.h b/Build/source/utils/asymptote/drawelement.h
index 2a8918eed21..cddf625b53d 100644
--- a/Build/source/utils/asymptote/drawelement.h
+++ b/Build/source/utils/asymptote/drawelement.h
@@ -22,6 +22,22 @@
namespace camp {
+extern double T[3]; // z-component of current transform
+
+static const double pixel=1.0; // Adaptive rendering constant.
+
+// Return one-sixth of the second derivative of the Bezier curve defined
+// by a,b,c,d at 0.
+inline triple bezierPP(triple a, triple b, triple c) {
+ return a+c-2.0*b;
+}
+
+// Return one-third of the third derivative of the Bezier curve defined by
+// a,b,c,d.
+inline triple bezierPPP(triple a, triple b, triple c, triple d) {
+ return d-a+3.0*(b-c);
+}
+
enum Interaction {EMBEDDED=0,BILLBOARD};
void copyArray4x4C(double*& dest, const vm::array *a);