summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/planeproject.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples/planeproject.asy')
-rw-r--r--Build/source/utils/asymptote/examples/planeproject.asy18
1 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/planeproject.asy b/Build/source/utils/asymptote/examples/planeproject.asy
new file mode 100644
index 00000000000..ab8980b613e
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/planeproject.asy
@@ -0,0 +1,18 @@
+import graph3;
+
+size3(200,IgnoreAspect);
+
+currentprojection=orthographic(4,6,3);
+
+real x(real t) {return 1+cos(2pi*t);}
+real y(real t) {return 1+sin(2pi*t);}
+real z(real t) {return t;}
+
+path3 p=graph(x,y,z,0,1,operator ..);
+
+draw(p,Arrow3);
+draw(planeproject(XY*unitsquare3)*p,red,Arrow3);
+draw(planeproject(YZ*unitsquare3)*p,green,Arrow3);
+draw(planeproject(ZX*unitsquare3)*p,blue,Arrow3);
+
+axes3("$x$","$y$","$z$");