summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/cube.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/cube.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/cube.asy15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/cube.asy b/Master/texmf-dist/doc/asymptote/examples/cube.asy
new file mode 100644
index 00000000000..acfecfdd7d4
--- /dev/null
+++ b/Master/texmf-dist/doc/asymptote/examples/cube.asy
@@ -0,0 +1,15 @@
+import three;
+
+currentprojection=orthographic(5,4,2,center=true);
+
+size(5cm);
+size3(3cm,5cm,8cm);
+
+draw(unitbox);
+
+dot(unitbox,red);
+
+label("$O$",(0,0,0),NW);
+label("(1,0,0)",(1,0,0),S);
+label("(0,1,0)",(0,1,0),E);
+label("(0,0,1)",(0,0,1),Z);