summaryrefslogtreecommitdiff
path: root/graphics/asymptote/runtime.in
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/runtime.in')
-rw-r--r--graphics/asymptote/runtime.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/asymptote/runtime.in b/graphics/asymptote/runtime.in
index 1f67200f5d..42ea5dffc8 100644
--- a/graphics/asymptote/runtime.in
+++ b/graphics/asymptote/runtime.in
@@ -1213,3 +1213,10 @@ bool isometry(transform t)
{
return t.isIsometry();
}
+
+real bezier(real a, real b, real c, real d, real t)
+{
+ real onemt=1-t;
+ real onemt2=onemt*onemt;
+ return onemt2*onemt*a+t*(3.0*(onemt2*b+t*onemt*c)+t*t*d);
+}