summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mpiv/mp-tres.mpiv4
-rw-r--r--metapost/context/base/mpxl/minifun.mpxl2
2 files changed, 5 insertions, 1 deletions
diff --git a/metapost/context/base/mpiv/mp-tres.mpiv b/metapost/context/base/mpiv/mp-tres.mpiv
index ccc6e6dba..5d8b942c3 100644
--- a/metapost/context/base/mpiv/mp-tres.mpiv
+++ b/metapost/context/base/mpiv/mp-tres.mpiv
@@ -114,6 +114,10 @@ vardef Abs primary p =
fi
enddef ;
+vardef Unitvector primary z =
+ z/Abs z
+enddef ;
+
primarydef p dotproduct q =
((Xpart p)*(Xpart q) + (Ypart p)*(Ypart q) + (Zpart p)*(Zpart q))
enddef ;
diff --git a/metapost/context/base/mpxl/minifun.mpxl b/metapost/context/base/mpxl/minifun.mpxl
index e1b1cda36..97bdd7bb7 100644
--- a/metapost/context/base/mpxl/minifun.mpxl
+++ b/metapost/context/base/mpxl/minifun.mpxl
@@ -26,8 +26,8 @@ newinternal boolean contextlmtxmode ; contextlmtxmode := true ; immutable contex
input "mp-base.mpiv" ;
input "mp-tool.mpxl" ;
-input "mp-mlib.mpxl" ;
input "mp-luas.mpxl" ;
+input "mp-mlib.mpxl" ;
input "mp-math.mpxl" ;
input "mp-cont.mpxl" ;
input "mp-page.mpxl" ;